player: movement now happens on the same frame again
authorLukas Krickl <lukas@krickl.dev>
Thu, 25 Sep 2025 09:10:20 +0000 (11:10 +0200)
committerLukas Krickl <lukas@krickl.dev>
Thu, 25 Sep 2025 09:10:20 +0000 (11:10 +0200)
src/actor.s
src/player.s

index 86017cf03ef4b2901d8ef51c2f004aa692bf9073..672e66a902e761006252e66849650cc698e89c1e 100644 (file)
@@ -137,11 +137,6 @@ actor_load_test:
        actor_spawn_test_guard 4, 20, 70
        actor_spawn_test_guard 5, 20, 80
        actor_spawn_test_guard 6, 30, 80
-       actor_spawn_test_guard 7, 30, 80
-       actor_spawn_test_guard 8, 30, 80
-       actor_spawn_test_guard 9, 30, 80
-       actor_spawn_test_guard 10, 30, 80
-       actor_spawn_test_guard 11, 30, 80
        ret
        
        ; despawns an actor
index 52ddc6c591ec4c1c3544ad5944e3e773c94697cb..74c44aef9dba4f48b6efcc78e3b58bc7ff51fe67 100644 (file)
@@ -18,9 +18,6 @@ player_update:
        xor a, 1
        ld [player_direction_proc], a
 
-       cp a, 1
-       jp z, @left_right
-
        ld b, BTNUP
        input_held
        jr z, @not_up REL
@@ -48,7 +45,6 @@ player_update:
                call player_try_move
 
 @not_down:
-       jp @direction_done
 
 @left_right: