diff options
| author | Starla Insigna <starla4444@gmail.com> | 2013-08-28 11:44:12 -0400 |
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2013-08-28 11:44:12 -0400 |
| commit | 992f4eb1e6d711c1be097ffb1684df9a23e08d54 (patch) | |
| tree | ec8ade2dca35fb42f179e21a54cf9a64608011f1 /gamestate.cpp | |
| parent | 4c0b84a69ff30c4aa91490ea1c16300f1017f845 (diff) | |
| download | mazeoflife-992f4eb1e6d711c1be097ffb1684df9a23e08d54.tar.gz mazeoflife-992f4eb1e6d711c1be097ffb1684df9a23e08d54.tar.bz2 mazeoflife-992f4eb1e6d711c1be097ffb1684df9a23e08d54.zip | |
Added highscore list viewing
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 | } |
