Brick Breaker

~ An old school video game ~

1/6
2/6
3/6
4/6
5/6
6/6

This game is a clone of the classic breakout game. Iy has a basic logic and the gameplay is very simple. The player controlls a paddle that can move left and right on top of which a ball bounces. The aim of the game is to direct the ball inside a playfield of coloured bricks in order to break them by hitting them with the ball. The level is cleared once every brick has been broken. Otherwise, if the ball passes beyond the paddle the game is over and the level starts from the beginning.

In addition, this project includes some extra features. It implements data persistence between the scenes and also between sessions. Data persistence between scenes is the process of transferring data from scene to scene to give the user a consistent experience as they progress through the game. It is used to transfer inforamtion spesific to the player (eg. their username) throughout the game. Data persistince between sessions is where the player wants to save the progress they made during one session and then restore it in another session. This is particularly helpfull when we want to keep track of highscores of each player and construct a leaderboard.

In order to achieve those kinds of data persistence, the singleton design pattern is used. Singleton is a design pattern that defines and instantiates only one instance of the class in the entire execution of a game or application. Then, this instance with all its attributes can be transfered and manipualted in various stages of the application.

Brick Breaker was made with Unity.

The project was part of a Unity course and the starter assets can be found on the Unity Learn page under the particular section.