actor: removed prev input rt variable
authorLukas Krickl <lukas@krickl.dev>
Mon, 8 Sep 2025 14:29:55 +0000 (16:29 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 8 Sep 2025 14:29:55 +0000 (16:29 +0200)
src/animation.s [new file with mode: 0644]
src/defs.s
src/macros.inc
src/main.s
src/unit.s

diff --git a/src/animation.s b/src/animation.s
new file mode 100644 (file)
index 0000000..176e29d
--- /dev/null
@@ -0,0 +1,3 @@
+; animation tables
+; each actor type has a table of all frames
+; of animation it may have
index 3116db1d3bd6ed6e5020b850b302d50a9151df31..046d450edbeabfa00ed02dab0ad038a56b6c9a86 100644 (file)
 .de act_rt_action_dat1, 1
 .de act_rt_action_dat2, 1
 
-       ; last direction this actor moved in
-       ; button press mirror
-       ; can be used to decide which sprite to display
-.de act_rt_prev_inputs, 1
        ; generic timer
        ; can be used for animations or other relevant timers
        ; state switching may change this value.
index b3d149433bc6f4b186f8dd1085f7b9bca1c44027..2cfc7ed6a26bcda15f03c6f8919a2e5b35a1fe53 100644 (file)
        ; act_rt_action_dat1/2
        .db 0, 0
        
-       ; rt last inputs 
-       .db 0
-
        ; rt timer
        .db 0
 #endmacro
index 202f777fe2c309ccb29e582f1251905935463325..9478d3093fe971a8fed78a49f456e31b5a5b9992 100644 (file)
@@ -83,6 +83,7 @@ main:
 #include "shoot.s"
 #include "action_menu.s"
 #include "select_menu.s"
+#include "animation.s"
 
 ; fill bank
 .fill 0xFF, 0x4000 - $
index a7f1bda51099d92a924832cfbbf6a6afb495156f..451d710ab71a6fa8deb218d24794ae1e1d86f225 100644 (file)
@@ -295,13 +295,6 @@ unit_handle_inputs:
   push bc
 
        
-       ; write inputs to unit input mirror 
-       ld hl, act_rt_prev_inputs
-       add hl, de
-       ld a, [curr_inputs]
-       ld [hl], a
-
-
        ld b, BTNA
        input_just
        ld hl, action_btna