Add "clear" text when all asteroids destroyed

This commit is contained in:
Camden Dixie O'Brien
2025-10-15 14:04:42 +01:00
parent 7e6637dce6
commit 6d16ba6e27
2 changed files with 16 additions and 0 deletions

2
game.c
View File

@@ -494,6 +494,8 @@ void game_draw()
shapes[i].connect);
}
if (asteroid_count == 0)
text_draw("CLEAR");
if (dead && !(counter & COUNTER_MASK))
text_draw("GAME OVER");
}