aboutsummaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-07 16:53:50 +0200
committerAstatin <[email protected]>2025-08-07 16:53:50 +0200
commit41b5858e855c68e01bf388e54abd82661e846585 (patch)
treedc552e5de42e033f49cb9774c7f1af2b737a5fc0 /modes
parent162fad62713d6b2e175c4cd5d7e53ebe7dedef11 (diff)
Add heal sound effect + remove useless tile loads
Diffstat (limited to 'modes')
-rw-r--r--modes/dungeon.gbasm3
-rw-r--r--modes/dungeongeneration.gbasm19
2 files changed, 22 insertions, 0 deletions
diff --git a/modes/dungeon.gbasm b/modes/dungeon.gbasm
index e67847b..b747375 100644
--- a/modes/dungeon.gbasm
+++ b/modes/dungeon.gbasm
@@ -11,6 +11,9 @@ Update_Animation_Steps:
BIT 3, A
JR Z, =.update_mode
+ LD A, $mem_map_loading_flags
+ SET 0, A
+ LD $mem_map_loading_flags, A
LD A, $mem_moving_animation_step
INC A
AND $0f
diff --git a/modes/dungeongeneration.gbasm b/modes/dungeongeneration.gbasm
index 1a0498f..dc6fd8a 100644
--- a/modes/dungeongeneration.gbasm
+++ b/modes/dungeongeneration.gbasm
@@ -225,6 +225,22 @@ Dungeon_generation_VBlank:
CALL =Reset_Entities_Collision_Map
+ LD A, $mem_loop_frame_timer
+ ADD $3c
+ LD B, A
+ .wait_1s.loop:
+ HALT
+ LD A, $mem_loop_frame_timer
+ CP B
+ JR NZ, =.wait_1s.loop
+
+ LD A, $mem_display_flag
+ RES 6, A
+ LD $mem_display_flag, A
+ LD A, $mem_map_loading_flags
+ RES 2, A
+ RES 0, A
+ LD $mem_map_loading_flags, A
LD A, $mem_sound_flags
CP $00
CALL Z, =Reset_Music_Channels
@@ -248,6 +264,9 @@ Dungeon_generation_Out_Of_VBlank:
PUSH HL
LD A, $saved_rom_bank
PUSH AF
+ LD A, $mem_loop_frame_timer
+ INC A
+ LD $mem_loop_frame_timer, A
CALL =Play_Music
CALL =VBlank_Wait
.ENABLE_MODE_2_INTERRUPT