From b11563b33596fab1b57d5e1026503f70d4f59297 Mon Sep 17 00:00:00 2001 From: rexim Date: Fri, 22 Mar 2024 05:37:37 +0700 Subject: Keep rendering Player on Turn_Animation even if Dead --- game.adb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'game.adb') diff --git a/game.adb b/game.adb index c483b7c..b2020eb 100644 --- a/game.adb +++ b/game.adb @@ -1061,6 +1061,10 @@ procedure Game is procedure Game_Player(Game: in out Game_State) is begin if Game.Player.Dead then + if Game.Turn_Animation >= 0.0 then + Draw_Rectangle_V(Screen_Player_Position(Game), Cell_Size, Palette_RGB(COLOR_PLAYER)); + end if; + if Space_Pressed then Game_Restore_Checkpoint(Game); Game.Player.Dead := False; @@ -1405,8 +1409,6 @@ end; -- - Closed -- - Open -- - Happy (very important to indicate that he's not hostile) --- TODO: Keep rendering Player on Turn_Animation even if Dead --- Because otherwise it just awkwardly disappears before running into the thing that killed them. -- TODO: Eye Angle Speed -- For smoother transitions. Especially from Open to Closed if we decide -- that the Closed eyes should always point down -- cgit v1.2.3