From ba90715d26e84fd176a0d44bd8e5dde826067d93 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 8 Nov 2009 13:42:14 -0500 Subject: 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 --- gamestate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gamestate.h') 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 { int playerx, playery; Level level; bool doneMaking; + int gens; }; class Board @@ -37,7 +38,6 @@ class GameState : public State { bool blocks[WIDTH][HEIGHT]; void incrementIfNeighbor(int x, int y, bool temp[WIDTH][HEIGHT], int* tick); GameState::Info* info; - int gens; public: Board(); @@ -51,7 +51,7 @@ class GameState : public State { Uint32 player_color; Uint32 event_color; bool newGame; - Info info; + Info* info; Board board; void move(int x, int y); }; -- cgit 1.4.1