diff options
author | Astatin <[email protected]> | 2024-12-12 15:52:19 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2024-12-12 15:52:19 +0900 |
commit | e93a99e8e8565db0111b40d3286ce3d78f263559 (patch) | |
tree | 5dea1c3d71de34d6b96ec01d8d0583bad053489b /entity | |
parent | c9ab625b7f226e778fe5cba894fe088e044e704c (diff) |
Earcopter damages + blinking animation
Diffstat (limited to 'entity')
-rw-r--r-- | entity/actions.gbasm | 4 | ||||
-rw-r--r-- | entity/display.gbasm | 19 |
2 files changed, 19 insertions, 4 deletions
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 |