Added basic calls to clear animation memory whenever null actors update
authorLukas Krickl <lukas@krickl.dev>
Sun, 8 Dec 2024 08:47:27 +0000 (09:47 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 8 Dec 2024 08:47:27 +0000 (09:47 +0100)
BUGS.md [new file with mode: 0644]
src/actor.s
src/player.s

diff --git a/BUGS.md b/BUGS.md
new file mode 100644 (file)
index 0000000..8dcf942
--- /dev/null
+++ b/BUGS.md
@@ -0,0 +1,4 @@
+# Known Bugs
+
+- When enemies move off-screen they get stuck
+  It appears that the finish turn code is not called correctly at this point
index edb48bd168283f9fe6ee7a0a27bfa5ccd548f5ac..977fd48d3af77e2bed6dfbe21d6536b8f81fba7c 100644 (file)
@@ -113,6 +113,7 @@ actor_update_null:
   
   ; actor_end_turn
   turn_finish
+  call anim_clear
   jp who_next
   
   ; bat actor 
index c3772a141bcef51550bcf0eb36b7fd106c5c61df..2e53370a7487de30657ced4fd7d310e296a76124 100644 (file)
@@ -96,6 +96,7 @@ player_update:
   cp a, 0
   jp nz, @skip_input
   call who_next ; next actor's turn
+  call anim_clear
   jp nz, @skip_input
 @no_anim: