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

Guitar Hero

Create a custom version of Guitar Hero in Java. A great game to practice building skills.

Parallel Parking Robot

Build a robot that is capable of finding a large enough gap to park in automatically.

Fireworks Screensaver

An animated screensaver that displays pixel fireworks. It also gives details on how many have been launched since opened. Set it as your background!

Scrolling Marquee Project

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