Commit 8d3a3b25 authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Switch to Game over screen when aliens are dead

parent c5913918
......@@ -61,7 +61,7 @@ int main() {
calcMenu();
} else if (state == GAME) {
calcGame();
if (playerLives <= 0) {
if (playerLives <= 0 || allAliensDead()) {
state = GAME_OVER;
endTime=GetTime();
calcGameOver(endTime-startTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment