From a3b1d30a4c5032cbdf30f303fc7ce964faf1a8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20Waage?= Date: Mon, 13 Sep 2021 13:13:43 +0200 Subject: [PATCH] Adding an outline for a set of exercises. --- exercises-1.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 exercises-1.md diff --git a/exercises-1.md b/exercises-1.md new file mode 100644 index 0000000..236eec3 --- /dev/null +++ b/exercises-1.md @@ -0,0 +1,23 @@ +## Exercises + +# Exercise: Game Over + +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. + +# Exercise: New Level + +In this exercise you will need to reset the game board but keep score and lives the same. This should happen when PacMan eats the last pellet or super pellet. + +The ghosts and pacman should go back to their original position and all of the pellets should respawn. This can go on forever, but you can look at the next exercise for more information. + +# Exercise: Victory + +As a continuation of the Game Over and New Level exercises. If PacMan beats 3 levels, the game has been beaten and a victory screen should be shown. + +A count of how many levels have been beaten needs to be stored and this should be checked when transitioning between levels. + +This should function similarly to the Game Over state but used to indicate that the player won the game. \ No newline at end of file