summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2010-08-10 08:28:44 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2010-08-10 08:28:44 -0400
commit8ac5ac0365569cd8fab1ba6360a09e748a4fa299 (patch)
tree4d3357560dcdb5c17b5316f5415d030faeb5122f
parentba90715d26e84fd176a0d44bd8e5dde826067d93 (diff)
downloadmazeoflife-8ac5ac0365569cd8fab1ba6360a09e748a4fa299.tar.gz
mazeoflife-8ac5ac0365569cd8fab1ba6360a09e748a4fa299.tar.bz2
mazeoflife-8ac5ac0365569cd8fab1ba6360a09e748a4fa299.zip
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.
-rw-r--r--gamestate.cpp8
1 files 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)
153 153
154GameState::Level::Level() 154GameState::Level::Level()
155{ 155{
156 level = 1; 156 level = 0;
157 157
158 alive[0] = getColor(0, 0, 0); // Black 158 alive[0] = getColor(0, 0, 0); // Black
159 alive[1] = getColor(255, 0, 0); // Red 159 alive[1] = getColor(255, 0, 0); // Red
@@ -178,14 +178,12 @@ bool GameState::Level::checkSquare(int x, int y)
178 switch (level/10+1) 178 switch (level/10+1)
179 { 179 {
180 case 1: 180 case 1:
181 return ((x>13)&&(x<16)&&(y>13)&&(y<16));
182 case 2:
183 return ((x>13)&&(x<17)&&(y>13)&&(y<17)); 181 return ((x>13)&&(x<17)&&(y>13)&&(y<17));
182 case 2:
184 case 3: 183 case 3:
185 case 4:
186 return ((x>12)&&(x<18)&&(y>12)&&(y<18)); 184 return ((x>12)&&(x<18)&&(y>12)&&(y<18));
185 case 4:
187 case 5: 186 case 5:
188 case 6:
189 return ((x>11)&&(x<19)&&(y>11)&&(y<19)); 187 return ((x>11)&&(x<19)&&(y>11)&&(y<19));
190 default: 188 default:
191 return true; 189 return true;