diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 21:29:00 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 21:29:00 +0100 |
| commit | b7ec9a63ebf0895f9c1940772a5735f905cccfb8 (patch) | |
| tree | 884aa6366b530c5eeddea25468d3609e629ee416 /src/driver.s | |
| parent | 997f7527aa2d73bb944ba49c58bd6c2a5909dd47 (diff) | |
| download | jetpac.nes-b7ec9a63ebf0895f9c1940772a5735f905cccfb8.tar.gz jetpac.nes-b7ec9a63ebf0895f9c1940772a5735f905cccfb8.zip | |
Restart the blinking animation after player's death
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à <mssola@mssola.com>
Diffstat (limited to 'src/driver.s')
| -rw-r--r-- | src/driver.s | 10 |
1 files changed, 8 insertions, 2 deletions
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 |
