diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-11-08 13:42:14 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-11-08 13:42:14 -0500 |
commit | ba90715d26e84fd176a0d44bd8e5dde826067d93 (patch) | |
tree | a5f0ca481895197f1d0e5db341e7263e3fcc0529 /gamestate.h | |
parent | c027f1b9cd6c9deb60931a7f9f75bb4ee130291b (diff) | |
download | mazeoflife-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 'gamestate.h')
-rw-r--r-- | gamestate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gamestate.h b/gamestate.h index d1b90ad..28b85c0 100644 --- a/gamestate.h +++ b/gamestate.h | |||
@@ -29,6 +29,7 @@ class GameState : public State { | |||
29 | int playerx, playery; | 29 | int playerx, playery; |
30 | Level level; | 30 | Level level; |
31 | bool doneMaking; | 31 | bool doneMaking; |
32 | int gens; | ||
32 | }; | 33 | }; |
33 | 34 | ||
34 | class Board | 35 | class Board |
@@ -37,7 +38,6 @@ class GameState : public State { | |||
37 | bool blocks[WIDTH][HEIGHT]; | 38 | bool blocks[WIDTH][HEIGHT]; |
38 | void incrementIfNeighbor(int x, int y, bool temp[WIDTH][HEIGHT], int* tick); | 39 | void incrementIfNeighbor(int x, int y, bool temp[WIDTH][HEIGHT], int* tick); |
39 | GameState::Info* info; | 40 | GameState::Info* info; |
40 | int gens; | ||
41 | 41 | ||
42 | public: | 42 | public: |
43 | Board(); | 43 | Board(); |
@@ -51,7 +51,7 @@ class GameState : public State { | |||
51 | Uint32 player_color; | 51 | Uint32 player_color; |
52 | Uint32 event_color; | 52 | Uint32 event_color; |
53 | bool newGame; | 53 | bool newGame; |
54 | Info info; | 54 | Info* info; |
55 | Board board; | 55 | Board board; |
56 | void move(int x, int y); | 56 | void move(int x, int y); |
57 | }; | 57 | }; |