From cb1111055f7b03989daac63675d27bfd156a4e21 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 2 Apr 2026 14:40:12 +0200 Subject: Cycle the kind of shuttle to be used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- include/globals.s | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3