From e93a99e8e8565db0111b40d3286ce3d78f263559 Mon Sep 17 00:00:00 2001 From: Astatin Date: Thu, 12 Dec 2024 15:52:19 +0900 Subject: Earcopter damages + blinking animation --- entity/actions.gbasm | 4 ---- entity/display.gbasm | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'entity') diff --git a/entity/actions.gbasm b/entity/actions.gbasm index 8d3adb3..5bc8200 100644 --- a/entity/actions.gbasm +++ b/entity/actions.gbasm @@ -168,10 +168,6 @@ Fox_Turn: LD D, A Fox_Turn.Health_check: - LD A, $mem_moving_animation_step - CP $03 - JR NZ, =Fox_Turn.Health_check.end - LD A, L AND $f0 ADD $06 diff --git a/entity/display.gbasm b/entity/display.gbasm index ed3e29b..d6899ff 100644 --- a/entity/display.gbasm +++ b/entity/display.gbasm @@ -90,6 +90,25 @@ Display_Entity: .ADD_A_TO_DIRECTION_BC Display_Entity.Moving_Animation.end: + Display_Entity.Blinking_Animation: + LD A, D + AND $f0 + CP $50 + JR NZ, =Display_Entity.Blinking_Animation.end + + LD A, $mem_moving_animation_step + PUSH DE + LD E, A + LD A, $mem_loading_step + XOR E + POP DE + AND $02 + CP $00 + JP Z, =Display_Entity.skip + + Display_Entity.Blinking_Animation.end: + + Display_Entity.Action_Animation: LD A, D AND $f0 -- cgit v1.2.3-70-g09d2