From: Lukas Krickl Date: Tue, 17 Jun 2025 03:30:21 +0000 (+0200) Subject: unit: Added a new _fast version of delay to active X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=d07e5f9d0859978801935744457775bd90bc71ec;p=gbrg%2F.git unit: Added a new _fast version of delay to active This state is intended for CPU units because they do not need an input delay to make gameplay feel better. --- diff --git a/src/unit.s b/src/unit.s index 9eb857c..1339831 100644 --- a/src/unit.s +++ b/src/unit.s @@ -117,7 +117,7 @@ unit_handle_cpu_inputs: cp a, 3 call z, unit_try_move_down - ld bc, st_unit_delay_to_active + ld bc, st_unit_delay_to_active_fast ret @@ -838,5 +838,8 @@ st_unit_idle: st_unit_delay_to_active: st_def 8, unit_delay_to_active, st_unit_switch_to_active +st_unit_delay_to_active_fast: + st_def 0, unit_delay_to_active, st_unit_switch_to_active + st_unit_switch_to_active: st_def 0, unit_switch_to_active, st_unit_switch_to_active