From c1e02814a8f5dffc8da80c45b96ccbfe92bdfc49 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 12 Feb 2026 22:22:08 +0100 Subject: Initial iteration of enemy movement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For now only the basic algorithm has been written, but the framework for adding the rest has also been written down. Signed-off-by: Miquel Sabaté Solà --- src/driver.s | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/driver.s') diff --git a/src/driver.s b/src/driver.s index 7966d71..f5d20d5 100644 --- a/src/driver.s +++ b/src/driver.s @@ -243,9 +243,7 @@ ;; Increase the index for the enemies cycling. If wrapping is detected, ;; then it resets this value back to zero. ldx zp_first_enemy - inx - inx - inx + NEXT_ENEMY_INDEX_X cpx #Enemies::ENEMIES_POOL_CAPACITY_BYTES bne @set_next_enemies_cycle ldx #0 @@ -341,9 +339,7 @@ ldx Globals::zp_tmp3 @next_enemy: - inx - inx - inx + NEXT_ENEMY_INDEX_X jmp @rest_o_enemies_loop @rest_o_items: -- cgit v1.2.3