Brick Breaker

Difficulty: Medium

ABOUT

I created the classic game Brick Breaker using Java. This is a classic game to build in java since it utilizes the object-oriented programming Java is famous for. This game has multiple different features implemented such as an in-game level editor, saving features, powerup's, and a level unlocking system.

Diagram

How this game works is that there is a double array of integers. This is initialized with the width and height of the game board and filled with 0's. The 0's represent empty spots and any number that is greater than 0 represents a certain colored of brick. For each digit I display a brick from the image 0-7 and I split it according to the value of the position in the array. In the array to the left, I  would render the only the values as green because it is the first position of this image. I split this image up in 8 different positions and the 0 position is transparent.  

More Projects You May Like

Scrolling Marquee Project

Enter custom messages and watch them scroll across the screen like the signs that appear off of highways!

Multiplayer Racing Game

Compete against your friends to get the best time in time trials. Upgrade your car with the best gear!

Snake Game

Create a classic snake game! As the points get higher, the game gets faster. Great for a begginer project.

Tetris

Play Tetris in Java! A great learning experience for an Intermediate programmer!