diff options
author | Astatin <[email protected]> | 2024-09-26 20:17:33 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-09-26 20:17:33 +0900 |
commit | 6f0a76fccce2bd8cbe74975623b28f0201b2610a (patch) | |
tree | 78c971a170c51e8ef922c310afc3f003f802e882 /entity/actions.gbasm | |
parent | 46947d48fe295a0a1a8d243ca6793f59ce3019c1 (diff) |
[WIP and completely broken] Reworking the bunny movements & display to decorelate the bunny from moving animation
Diffstat (limited to 'entity/actions.gbasm')
-rw-r--r-- | entity/actions.gbasm | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/entity/actions.gbasm b/entity/actions.gbasm index c39781e..4dafb04 100644 --- a/entity/actions.gbasm +++ b/entity/actions.gbasm @@ -56,6 +56,27 @@ Entity_Action: LD L, A RET +Update_Animation_Steps: + LD A, $mem_map_loading_flags + BIT 3, A + JR Z, =Update_Animation_Steps.end: + + LD A, $mem_moving_animation_step + INC A + AND $0f + LD $mem_moving_animation_step, A + + CP $00 + JR NZ, =Update_Animation_Steps.end + + LD A, $mem_map_loading_flags + RES 3, A + SET 1, A + LD $mem_map_loading_flags, A + + Update_Animation_Steps.end: + RET + Fox_AI: PUSH HL @@ -120,10 +141,10 @@ Fox_AI: AND $08 LD B, A - LD A, $04 - CALL =RNG_Bound + CALL =RNG_Step + AND $03 INC A - OR $08 + OR B LD B, A PUSH BC @@ -144,5 +165,3 @@ Fox_AI: POP HL RET - - |