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 | |
| 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>
| -rw-r--r-- | .nasm/segments.txt | 2 | ||||
| -rw-r--r-- | src/driver.s | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/.nasm/segments.txt b/.nasm/segments.txt index b060988..2c4877f 100644 --- a/.nasm/segments.txt +++ b/.nasm/segments.txt @@ -1,4 +1,4 @@ - HEADER: 16/16 (100%) -- ROM0: 8245/32762 (25.17%) +- ROM0: 8253/32762 (25.19%) - ROMV: 6/6 (100%) - ROM2: 8192/8192 (100%) 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 |
