diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 10:02:20 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 10:02:20 -0400 |
commit | 49900856bece81481a56888b7bbce45bf746c422 (patch) | |
tree | 90920e11d68e5baed4aa1ce5bd9dcfa6b679661c /titlestate.cpp | |
parent | bca5121051383933e5fdf15f6bcb04ddb797ac45 (diff) | |
download | mazeoflife-49900856bece81481a56888b7bbce45bf746c422.tar.gz mazeoflife-49900856bece81481a56888b7bbce45bf746c422.tar.bz2 mazeoflife-49900856bece81481a56888b7bbce45bf746c422.zip |
Added Choose Highscore List state
Refs #104
Diffstat (limited to 'titlestate.cpp')
-rw-r--r-- | titlestate.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/titlestate.cpp b/titlestate.cpp index 6c4401d..980e3b6 100644 --- a/titlestate.cpp +++ b/titlestate.cpp | |||
@@ -30,7 +30,9 @@ void TitleState::input(SDLKey key) | |||
30 | changeState(new HowToPlayState()); | 30 | changeState(new HowToPlayState()); |
31 | 31 | ||
32 | break; | 32 | break; |
33 | case 2: // Add choose highscore list | 33 | case 2: |
34 | changeState(new ChooseHighscoreListState()); | ||
35 | |||
34 | break; | 36 | break; |
35 | case 3: | 37 | case 3: |
36 | exit(0); | 38 | exit(0); |
@@ -45,8 +47,8 @@ void TitleState::render(SDL_Surface* screen) | |||
45 | SDL_Rect pSpace; | 47 | SDL_Rect pSpace; |
46 | pSpace.x = 136; | 48 | pSpace.x = 136; |
47 | pSpace.y = (selection==0?316:(selection==1?350:(selection==2?381:417))); | 49 | pSpace.y = (selection==0?316:(selection==1?350:(selection==2?381:417))); |
48 | pSpace.w = screen->w; | 50 | pSpace.w = pointer->w; |
49 | pSpace.h = screen->h; | 51 | pSpace.h = pointer->h; |
50 | 52 | ||
51 | SDL_BlitSurface(pointer, NULL, screen, &pSpace); | 53 | SDL_BlitSurface(pointer, NULL, screen, &pSpace); |
52 | } | 54 | } |