diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-02 14:40:12 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-02 14:40:12 +0200 |
| commit | cb1111055f7b03989daac63675d27bfd156a4e21 (patch) | |
| tree | a3038f24c830b053dc7b63e7935f63e0bd50f7b3 /include | |
| parent | ba2711cb490c26e05c1b8f6cd3e1d081309d15fd (diff) | |
| download | jetpac.nes-cb1111055f7b03989daac63675d27bfd156a4e21.tar.gz jetpac.nes-cb1111055f7b03989daac63675d27bfd156a4e21.zip | |
Cycle the kind of shuttle to be used
In preparation to having multiple kinds of shuttles as in the original
game, introduce the 'Globals::zp_shuttle_kind' variable, which is just a
helper value by masking out the 'Globals::zp_level' variable. This in
turn will be the index for selecting which tile IDs for each shuttle
part.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/globals.s | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/globals.s b/include/globals.s index a958778..515d5d4 100644 --- a/include/globals.s +++ b/include/globals.s @@ -48,6 +48,10 @@ ;; masking `zp_level`. zp_level_kind = $25 + ;; The kind of shuttle to be used. As with 'zp_level_kind', this is just a + ;; cached version of masking 'zp_level'. + zp_shuttle_kind = $26 + ;; | Bit | Short name | Meaning | ;; |-----+------------------+--------------------------| ;; | 7 | enabled | Multiplayer enabled. | @@ -55,7 +59,7 @@ ;; | 2 | player's 2 state | 0: over; 1: alive | ;; | 1 | player's 1 state | 0: over; 1: alive | ;; | 0 | active | 0: player 1; 1: player 2 | - zp_multiplayer = $26 + zp_multiplayer = $27 ;; Extra bitmap that was needed beyond the ones that we already have. Yeah, ;; I know, bad planning from my side, but now it's a bit complex to untangle @@ -66,5 +70,5 @@ ;; | 7 | score | The score has been updated. | ;; | 6 | high | The high score has been updated. | ;; | 5-0 | - | Unused. | - zp_extra_flags = $27 + zp_extra_flags = $28 .endscope |
