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/driver.s | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/driver.s') diff --git a/src/driver.s b/src/driver.s index b367c63..9d31604 100644 --- a/src/driver.s +++ b/src/driver.s @@ -885,6 +885,11 @@ lda Globals::zp_level and #%00000111 sta Globals::zp_level_kind + lda Globals::zp_level + and #%00001100 + lsr + lsr + sta Globals::zp_shuttle_kind ;; Just like we did in Drivers::switch(), we re-initialize some things ;; like timers and the items. Note that re-setting the timers will force -- cgit v1.2.3