From b7ec9a63ebf0895f9c1940772a5735f905cccfb8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 20 Mar 2026 21:29:00 +0100 Subject: Restart the blinking animation after player's death MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I believe this case was broken since the very beginning when I implemented it in commit b891997ab597 ("Add a blinking animation on player selection"). Signed-off-by: Miquel Sabaté Solà --- src/driver.s | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/driver.s') diff --git a/src/driver.s b/src/driver.s index f328a68..ab63b5f 100644 --- a/src/driver.s +++ b/src/driver.s @@ -321,7 +321,7 @@ ;; After all the explosions/items have been done, is any player alive? lda Globals::zp_multiplayer and #%00000110 - bne @reset_timer + bne @reset_timers ;; No! Set the game over bit (with or without coin). lda Globals::zp_flags @@ -347,11 +347,17 @@ dey bne @items_reset_loop - @reset_timer: + @reset_timers: ;; Reset the player's timer to enter the game screen again. lda #PLAYER_TIMER_VALUE sta zp_player_timer + ;; Restart the blinking animation. + lda #BLINKING_TIME + sta Driver::zp_blink_timer + lda #$80 + sta Driver::zp_blink_status + @sprite_cycling: __fallthrough__ sprite_cycling .endproc -- cgit v1.2.3