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 /playerattacks/hop.gbasm | |
parent | 2df3daa5128a27381fe5208fa4eac59ab10bdd9c (diff) |
Separate modes VBlank functions
Diffstat (limited to 'playerattacks/hop.gbasm')
-rw-r--r-- | playerattacks/hop.gbasm | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/playerattacks/hop.gbasm b/playerattacks/hop.gbasm index 8aa445b..ac89acd 100644 --- a/playerattacks/hop.gbasm +++ b/playerattacks/hop.gbasm @@ -87,12 +87,19 @@ Hop_Attack_Loading_VBlank: INC A AND $0f LD $mem_loading_step, A + RET + + +Hop_Attack_Loading_Regular: + LD A, $mem_loading_step CP $00 - RET NZ + JR NZ, =.preload_tiles LD A, $enum_dungeon_mode LD $mem_current_mode, A LD $mem_requested_mode, A + CALL =Update_VBlank_Handler + CALL =Fix_Bunny_screen LD A, $mem_bunny_direction OR $38 LD $mem_bunny_direction, A @@ -104,7 +111,11 @@ Hop_Attack_Loading_VBlank: LD $mem_bunny_flags, A RET -Hop_Attack_Loading_Regular: + + .preload_tiles: + LD A, $mem_current_mode + CP $enum_loading_mode + RET NZ CALL =Preload_Map_Hop LD A, $mem_prepared_block_tile |