From f9ca8ca80b9d0cf0d54f9aa59a3fbb517c37fc9c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 6 Apr 2026 21:43:44 +0200 Subject: Clear out sprites after the take off animation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was hidden before commit 134c671e18b6 ("Cancel the take off animation before shuttle change"), as the sprites and the background matched perfectly. That wasn't the case in the case where the shuttle kind was to change. Signed-off-by: Miquel Sabaté Solà --- src/driver.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/driver.s b/src/driver.s index 1bcef27..fca43f1 100644 --- a/src/driver.s +++ b/src/driver.s @@ -892,6 +892,19 @@ lda #$80 sta Driver::zp_flags + ;; Clear the sprites from the animation now, as it will be distracting + ;; before the player et al are initialized. + ldx #0 + lda #$FF + @clear_loop: + sta OAM::m_sprites, x + inx + inx + inx + inx + cpx #(12 * 4) ; NOTE: 12 sprites from the shuttle. + bne @clear_loop + ;; Increase the level :) inc Globals::zp_level lda Globals::zp_level -- cgit v1.2.3