Breakout (Brick Breaker) Game Using Java : version 2


Breakout Game using Java

This is the second version in the development of the Breakout (Brick Breaker) game.  In this version, I added the bricks to the game.



Adding the bricks to the game was not easy.  I had to import some modules and make sure that the outline for the bricks was well done.  Making the bricks involved creating a nested loop.

There was a problem with the ball.  Once the ball connected with a brick, the ball would not bounce off randomly. Instead the ball would continue on a direct path.  I needed to add code so that the ball would bounce randomly after making contact with a brick.



I still have an issue with the ball leaving the screen. This can be seen in the image above. Once the ball leaves the playing screen, the program generates a yellow streak. I will need to fix this.  Most likely, I will increase the size of the playing screen.


In the next stage, I will need to add the score and increase the complexity of the game.  I will do this over the week-end, hopefully.




Comments

Popular posts from this blog

Maze Game in Python using Turtle

Space Wars- Python 3