


Something to say about this - I get that you will be implementing a system to lose lives later, but the ball is moving too fast to accurately hit the ball. Either make the board a lot bigger or slow down the ball so the player can correctly react. I hope to see some good work on this project though!



Good start.
The makebricks() can be written in less lines:
function makebricks() brick={x=60,y=30,w=8,h=4} bricks={} for r=1, 5 do for c=1, r%2==0 and 10 or 11 do add(bricks,{x=r%2==0 and 9+(c-1)*11 or 5+(c-1)*11, y=8+(r-1)*7, w=brick.w, h=brick.h}) end end end |
[Please log in to post a comment]