aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-02-25 16:54:34 +0900
committerAstatin <[email protected]>2025-02-25 16:54:34 +0900
commitb21954eb05d9285ed7542a1f42ed755a147782a8 (patch)
tree935794c0eb59ff484d4e9c3a9849d588fbd5919b /main.gbasm
parent18d7d064daf704193f8dff6b2ef3ae68b7fc3aac (diff)
Fix initialization and flickering issues
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.gbasm b/main.gbasm
index 3707c30..a30bb36 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -126,6 +126,18 @@ New_Dungeon:
LD A, $00
LD $mem_bunny_flags, A
LD $mem_display_flag, A
+ LD $mem_moving_animation_step, A
+ LD $mem_animation_wait_frames, A
+ LD $mem_blinking_animation_counter, A
+
+ LD A, $mem_map_loading_flags
+ RES 3, A
+ LD $mem_map_loading_flags, A
+
+ ; Clear OAM
+ LD HL, $fe00
+ LD BC, $00a0
+ CALL =bzero
LD A, $enum_dungeon_mode
LD $mem_current_mode, A
@@ -157,6 +169,7 @@ VBLANK_Entrypoint:
LD HL, $9d72
LD A, $dbg_VBLANK_STATE
+ LD A, $mem_bunny_x
CALL =Print_8bit
CALL $OAM_DMA_Transfer_routine