From 8b8a5c028e3b9d56ad018aba582cc81e66c45a15 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 1 Mar 2026 23:14:58 +0100 Subject: Fix bottom collision for fighter jet 1s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- src/enemies.s | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/enemies.s') diff --git a/src/enemies.s b/src/enemies.s index f69e9fd..9bda83d 100644 --- a/src/enemies.s +++ b/src/enemies.s @@ -545,10 +545,17 @@ JAL bite_the_dust @check_down: - ;; If that failed, then increment the vertical tile coordinate twice to - ;; get the bottom boundary and check again. + ;; If that failed, then increment the vertical tile coordinate to get + ;; the bottom boundary and check again. Note that the "bottom" is + ;; different if it's the regular 'basic' enemy or it's the fighter jet + ;; re-using this algorithm. That's why if the level kind is 3 the bottom + ;; is increased by one and not twice. inc Globals::zp_arg0 + ldy Globals::zp_level_kind + cpy #3 + beq @skip_second_inc inc Globals::zp_arg0 + @skip_second_inc: jsr Background::collides beq @end JAL bite_the_dust -- cgit v1.2.3