diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-06 00:17:08 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-06 00:17:08 +0200 |
| commit | ae15803a88f82a16ceb08ebf0a17f5c0e9e31c4e (patch) | |
| tree | fb7b4dba109959dd832f795e53989b7085ba5e15 /src | |
| parent | 134c671e18b6617b1ac2417ff4efaa8c6b8fc4b6 (diff) | |
| download | jetpac.nes-ae15803a88f82a16ceb08ebf0a17f5c0e9e31c4e.tar.gz jetpac.nes-ae15803a88f82a16ceb08ebf0a17f5c0e9e31c4e.zip | |
Don't show the middle part on shuttle re-assemble
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/items.s | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/items.s b/src/items.s index fb6514d..d8d1391 100644 --- a/src/items.s +++ b/src/items.s @@ -251,7 +251,6 @@ rts @invalidate_third: - ;; Always invalidate the third item. lda #$FF sta Items::zp_pool_base + 6, x @@ -1019,7 +1018,6 @@ and #$03 beq @end - @rest_of_the_rocket: jsr draw_high_part_shuttle jsr draw_middle_part_shuttle @@ -1129,8 +1127,16 @@ sta PPU::m_data @just_middle: + lda Items::zp_collected + cmp #2 + bcc @skip_draw_middle jsr draw_middle_part_shuttle + @skip_draw_middle: + ;; NOTE: just in case we move into the next level and we need to + ;; reconstruct the low part of the shuttle after the "take off" + ;; animation cleared it away. + ;; Set the attributes to the default one just in case we are switching ;; from a previous level. bit PPU::m_status @@ -1141,9 +1147,6 @@ lda #0 sta PPU::m_data - ;; NOTE: just in case we move into the next level and we need to - ;; reconstruct the low part of the shuttle after the "take off" - ;; animation cleared it away. jsr draw_low_part_shuttle ;; Set the attributes to the default one just in case we are switching |
