diff options
author | Astatin <[email protected]> | 2025-03-25 19:01:47 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2025-03-25 19:01:47 +0900 |
commit | fb8e853fd0c6660696e762f67877b4d24a9f4c22 (patch) | |
tree | 4c2c69bd5e13bebfe02534541e4adcf2b67f335f /entity/bunny.gbasm | |
parent | 2df3daa5128a27381fe5208fa4eac59ab10bdd9c (diff) |
Separate modes VBlank functions
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r-- | entity/bunny.gbasm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm index 29f66d9..7789ec5 100644 --- a/entity/bunny.gbasm +++ b/entity/bunny.gbasm @@ -6,6 +6,17 @@ Move_Bunny: LD E, $02 .Normal_speed: + .Finish_unfreeze: + LD A, $mem_moving_animation_step + CP $00 + JR NZ, =.Finish_unfreeze.end + LD A, $mem_bunny_status + CP $04 + JR NZ, =.Finish_unfreeze.end + LD A, $00 + LD $mem_bunny_status, A + .Finish_unfreeze.end: + .Freeze_shiver: LD A, $mem_moving_animation_step CP $00 @@ -35,7 +46,7 @@ Move_Bunny: JP NC, =.Skip_turn .Unfreeze: - LD A, $00 + LD A, $04 LD $mem_bunny_status, A LD A, $mem_bunny_flags RES 1, A |