From: Lukas Krickl Date: Mon, 8 Sep 2025 14:29:55 +0000 (+0200) Subject: actor: removed prev input rt variable X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=00fa1b537d14b1397cadc257b5d44807aef36574;p=gbrg%2F.git actor: removed prev input rt variable --- diff --git a/src/animation.s b/src/animation.s new file mode 100644 index 0000000..176e29d --- /dev/null +++ b/src/animation.s @@ -0,0 +1,3 @@ +; animation tables +; each actor type has a table of all frames +; of animation it may have diff --git a/src/defs.s b/src/defs.s index 3116db1..046d450 100644 --- a/src/defs.s +++ b/src/defs.s @@ -185,10 +185,6 @@ .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. diff --git a/src/macros.inc b/src/macros.inc index b3d1494..2cfc7ed 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -189,9 +189,6 @@ ; act_rt_action_dat1/2 .db 0, 0 - ; rt last inputs - .db 0 - ; rt timer .db 0 #endmacro diff --git a/src/main.s b/src/main.s index 202f777..9478d30 100644 --- a/src/main.s +++ b/src/main.s @@ -83,6 +83,7 @@ main: #include "shoot.s" #include "action_menu.s" #include "select_menu.s" +#include "animation.s" ; fill bank .fill 0xFF, 0x4000 - $ diff --git a/src/unit.s b/src/unit.s index a7f1bda..451d710 100644 --- a/src/unit.s +++ b/src/unit.s @@ -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