summary refs log tree commit diff stats
path: root/gamestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gamestate.cpp')
-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;