From d72febf1ce9a72cdfb3cb822d74456a387897672 Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 26 Aug 2025 14:29:01 +0200 Subject: Add Game Over music & dialogue box + button press after music end restarts --- gui.gbasm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gui.gbasm') diff --git a/gui.gbasm b/gui.gbasm index bd03284..423c081 100644 --- a/gui.gbasm +++ b/gui.gbasm @@ -257,7 +257,21 @@ Check_dialogue_action: JR Z, =.Dungeon_Menu CP $enum_dungeon_dialogue_mode + JR Z, =.Dialogue_Box + + LD A, $mem_button_action + LD B, A + LD A, $mem_last_button_action + XOR B + AND B + CP $00 + RET Z + ; Wait for the music to stop to restart game when button pressed + LD A, $mem_sound_flags + BIT 0, A RET NZ + JP =Start + RET .Dialogue_Box: LD A, $mem_button_action -- cgit v1.2.3-70-g09d2