From f4dcb079a0140b6450c2719231b364f376b2dff9 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 20 Dec 2024 11:02:31 +0100 Subject: [PATCH] Bat actors now use direction constants for movement --- src/actor.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actor.s b/src/actor.s index b98bad3..d4b032f 100644 --- a/src/actor.s +++ b/src/actor.s @@ -222,13 +222,13 @@ actor_update_bat: and a, 0b11 ; rnadom direction 0-3 ; call correct movement setup - cp a, 0 + cp a, NORTH call z, actor_up - cp a, 1 + cp a, SOUTH call z, actor_down - cp a, 2 + cp a, WEST call z, actor_left - cp a, 3 + cp a, EAST call z, actor_right ; check anim collision -- 2.30.2