Brick Buster
Brick Buster is a Brick Breaker clone developed using 5 software design patterns. The Command pattern keeps track of the bricks that are hit, and if the ball falls below the paddle, 5 bricks are restored in the wall. Flyweight is used to store the data for each brick type, then at the time of loading, populate the brick wall without creating a new instance of each brick placed in the game. A State machine handles the state of the ball. Observer is used for event notification. Prototype is used for the different types of items that can drop when a brick is hit.