2021-10-05 12:19:15 +00:00
|
|
|
[< Back](../README.md)
|
|
|
|
|
2021-10-05 10:51:55 +00:00
|
|
|
# Exercise: Game Over
|
|
|
|
|
2021-10-05 12:29:27 +00:00
|
|
|
## Background:
|
|
|
|
|
2021-10-05 10:51:55 +00:00
|
|
|
In this exercise you will add a game over state to the game. After PacMan has lost all of his lives the game will be
|
|
|
|
over. PacMan should not respawn and the ghosts should stop.
|
|
|
|
|
|
|
|
The GameState class has the number of lives and they are already drawn on screen so that information can be used to
|
|
|
|
indicate the game over state itself.
|
|
|
|
|
|
|
|
If the game is over, the text "Game Over" should be drawn over the game board. You do not need to implement a new game,
|
|
|
|
for this exercise restarting the application is enough.
|
2021-10-05 12:29:27 +00:00
|
|
|
|
|
|
|
## Exercise
|
|
|
|
|
|
|
|
1.
|