Просмотр исходного кода

Cosmetically show 3 lives on Game Over screen

SimplyMinimal 3 лет назад
Родитель
Сommit
6c0a033294
1 измененных файлов с 1 добавлено и 0 удалено
  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);
         }