Add "clear" text when all asteroids destroyed

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent 88f49dab91
commit 79ac5a489d
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");
}