From 8ac5ac0365569cd8fab1ba6360a09e748a4fa299 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Aug 2010 08:28:44 -0400 Subject: Removed empty level Previously, when you started the game, the first 9 levels were so easy that they were practically pointless. Now, when you start the game, you start at level 0 and the levels are as difficult as the Red Levels used to be. --- gamestate.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gamestate.cpp b/gamestate.cpp index 95d1769..fcf865f 100644 --- a/gamestate.cpp +++ b/gamestate.cpp @@ -153,7 +153,7 @@ void GameState::render(SDL_Surface* screen) GameState::Level::Level() { - level = 1; + level = 0; alive[0] = getColor(0, 0, 0); // Black alive[1] = getColor(255, 0, 0); // Red @@ -178,14 +178,12 @@ bool GameState::Level::checkSquare(int x, int y) switch (level/10+1) { case 1: - return ((x>13)&&(x<16)&&(y>13)&&(y<16)); - case 2: return ((x>13)&&(x<17)&&(y>13)&&(y<17)); + case 2: case 3: - case 4: return ((x>12)&&(x<18)&&(y>12)&&(y<18)); + case 4: case 5: - case 6: return ((x>11)&&(x<19)&&(y>11)&&(y<19)); default: return true; -- cgit 1.4.1