Explorar o código

Cosmetically show 3 lives on Game Over screen

SimplyMinimal %!s(int64=3) %!d(string=hai) anos
pai
achega
6c0a033294
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app.c

+ 1 - 0
app.c

@@ -536,6 +536,7 @@ void game_tick(void* ctx) {
         /* 2. Game over. We need to update only background asteroids. In this
      * state the game just displays a GAME OVER text with the floating
      * asteroids in backgroud. */
+        app->lives = GAME_START_LIVES; // Show 3 lives in game over screen to match new game start
         if(key_pressed_time(app, InputKeyOk) > 100) {
             restart_game_after_gameover(app);
         }