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à --- src/jetpac.s | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/jetpac.s') diff --git a/src/jetpac.s b/src/jetpac.s index 5716be8..b9e6311 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -153,9 +153,15 @@ sta Globals::zp_level and #%00000111 sta Globals::zp_level_kind + lda #LEVEL + and #%00001100 + lsr + lsr + sta Globals::zp_shuttle_kind .else sta Globals::zp_level sta Globals::zp_level_kind + sta Globals::zp_shuttle_kind .endif ;; Initialize the assets for the game. If the first sprite is not -- cgit v1.2.3