From 0c9b0ad7938e2ba7e994574b4947e25c82440b8c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 23 Mar 2026 23:59:26 +0100 Subject: Implement the "take off" animation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the animation that is done after clearing a stage. Moreover, and for the first time since I started development, now we can move into the next level as intended from the game's design. Signed-off-by: Miquel Sabaté Solà --- src/interrupts.s | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/interrupts.s') diff --git a/src/interrupts.s b/src/interrupts.s index 2c78099..6c7e75b 100644 --- a/src/interrupts.s +++ b/src/interrupts.s @@ -103,8 +103,18 @@ tax and #%00100000 beq @game_status + + ;; Yes! Then, if there are no collected items, we just clear out the shuttle + ;; entirely (i.e. it's the shuttle take off animation), otherwise we go into + ;; the usual route. + lda Items::zp_collected + bne @do_update_shuttle + jsr Background::clear_shuttle + jmp @unset_shuttle_flag +@do_update_shuttle: jsr Items::update_shuttle +@unset_shuttle_flag: ;; And unset the flag. lda Globals::zp_flags and #%11011111 -- cgit v1.2.3