diff options
Diffstat (limited to 'gamestate.cpp')
| -rw-r--r-- | gamestate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
| diff --git a/gamestate.cpp b/gamestate.cpp index c6d12fd..323cac5 100644 --- a/gamestate.cpp +++ b/gamestate.cpp | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | #include <SDL_ttf.h> | 2 | #include <SDL_ttf.h> |
| 3 | #include "util.h" | 3 | #include "util.h" |
| 4 | #include "mazeoflife.h" | 4 | #include "mazeoflife.h" |
| 5 | #include "highscore.h" | ||
| 6 | #include "titlestate.h" | ||
| 5 | 7 | ||
| 6 | class GameBoard { | 8 | class GameBoard { |
| 7 | public: | 9 | public: |
| @@ -210,6 +212,9 @@ State* PlayGameState::operator() (SDL_Renderer* renderer) | |||
| 210 | } else { | 212 | } else { |
| 211 | break; | 213 | break; |
| 212 | } | 214 | } |
| 215 | |||
| 216 | case SDLK_ESCAPE: | ||
| 217 | return new TitleState(); | ||
| 213 | } | 218 | } |
| 214 | } | 219 | } |
| 215 | } | 220 | } |
