![[GUIBreakout.zip]]
## Exercise
1. Use Mermaid or similar to draw a class diagram of the game. Make sure you note any interfaces and inheritance. I've started you off below.
```mermaid
classDiagram
Sprite <|-- Ball
Sprite <|-- Brick
Sprite <|-- Paddle
GUIBreakout <|-- GamePanel
```
1. Look at the GamePanel class
1. Set the paddle to appear in the middle of the screen
2. Centre the bricks on the screen
3. At the moment the number of bricks is hard coded. Add final variables to hold the number of bricks
2. Look at the GUIBreakOut class
1. Remove the start and stop buttons. Implement a start screen that has the instruction "Hit space to start". Implement code so that hitting space starts the game.
2. Add code to display the score. The score is calculated by the number of bricks destroyed
3. A player has three lives. If the ball goes off the bottom of the screen the player should lose a life. The game ends when a player loses all three lives or when they have destroyed all the bricks. Add code to implement this.