summary refs log tree commit diff stats
path: root/hsnew.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-11-08 13:42:14 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-11-08 13:42:14 -0500
commitba90715d26e84fd176a0d44bd8e5dde826067d93 (patch)
treea5f0ca481895197f1d0e5db341e7263e3fcc0529 /hsnew.cpp
parentc027f1b9cd6c9deb60931a7f9f75bb4ee130291b (diff)
downloadmazeoflife-ba90715d26e84fd176a0d44bd8e5dde826067d93.tar.gz
mazeoflife-ba90715d26e84fd176a0d44bd8e5dde826067d93.tar.bz2
mazeoflife-ba90715d26e84fd176a0d44bd8e5dde826067d93.zip
Added global highscore list
You can now view and submit highscores to the global highscore list. If the connection fails, you are allowed to retry sending it so your score is not
lost. The actual global highscore list is a PHP file and MySQL database that will need to be uploaded to Four Island Other for this to work.

Some other things were done. Because it was discovered that the frequent window caption changes were making Maze Of Life crash, they were removed and the
player is now notified of their score by the level number appearing in 100 point font at the beginning of each level during the doneWorking stage. Also,
a cheat was added that allows you to play the game in fullscreen if you press F4 on a supporting platform. The player is now also slightly faster.

Closes #104
Diffstat (limited to 'hsnew.cpp')
-rw-r--r--hsnew.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/hsnew.cpp b/hsnew.cpp index 3bec468..8b752a6 100644 --- a/hsnew.cpp +++ b/hsnew.cpp
@@ -38,7 +38,6 @@ NewHighscoreState::NewHighscoreState(int level)
38 rntSpace.w = newName->w; 38 rntSpace.w = newName->w;
39 rntSpace.h = newName->h; 39 rntSpace.h = newName->h;
40 40
41 SDL_WM_SetCaption("Maze Of Life - New Highscore!", NULL);
42 SDL_EnableUNICODE(1); 41 SDL_EnableUNICODE(1);
43} 42}
44 43
@@ -99,7 +98,9 @@ void NewHighscoreState::input(SDL_keysym key)
99 changeState(new GameState()); 98 changeState(new GameState());
100 99
101 break; 100 break;
102 case 1: // Submit score to Global highscore list 101 case 1:
102 changeState(new SubmitHighscoreListState(hsname, level));
103
103 break; 104 break;
104 case 2: 105 case 2:
105 changeState(new TitleState()); 106 changeState(new TitleState());