Inspiration

We wanted to create some sort of interactive game that is user-friendly and fun at the same time.

What it does

We decided to code our own version of brick breaker using Java graphics and animation. However, there are a few differences. There are 3 different colored bricks that each correspond to a different point value depending on the size of each. Users have 3 lives, which means that the ball can touch the bottom of the screen 3 times before the game is over. Lastly, at random points in the game, the bricks will move towards the bottom of the screen, making the game harder for the user.

How we built it

We built this game using Java graphics. In order to construct the game, we started off with a ball class and a bumper class. Then, we created a bumper collision class that handles when the ball hits the bricks. We had to incorporate mouse and action listener in order for the game to be interactive. Lastly, we took advantage of timer listener in order to make the bricks move periodically throughout the game.

Challenges we ran into

Ensuring that the collisions between the ball and the bricks were registered before the bricks disappeared was a little bit of a struggle. Another challenge we had was working with all of the different types of listeners. We had to do a little research in order to get it to work and be interactive for the user.

Accomplishments that we're proud of

We are proud of the concept in general as well as with the user interface of the final product. Java is not a language known for its graphics, but we were able to make it work after doing some research and trial and error.

What we learned

We gained insights into object-oriented programming in Java, game implementation, collision detection, and user interface. Working on this project allowed us to deepen our understanding of Java programming concepts and improve our problem-solving skills.

What's next for Moving Brick Breaker

We will improve Moving Brick Breaker to include power-ups, skill levels, customization, multiplayer settings, and potential VR integration. Story modes and leaderboards would keep players engaged, and cross-platform compatibility would improve accessibility.

Built With

Share this project:

Updates