Brick Breaker Code in Place 2020

by John X


I nearly completed the Brick Breaker standard project. I drew the rows of different colored bricks, moving mouse-linked paddle and moving ball; got the ball to rebound off objects, boundaries and the paddle, deleting bricks as they are struck by the ball; and kept count of how many times the ball reached the bottom boundary, limiting gameplay to 3 balls. To improve the game with more time/understanding: the game would end when all the bricks have been deleted (or have multiple play levels?)--not just when all 3 balls have reached the bottom boundary, a score would be kept during game play, rebound off the paddle and bricks would be improved, and there would be a right side limit for the paddle within the canvas.