aboutsummaryrefslogtreecommitdiff
path: root/modes/dungeon.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-07-01 16:53:10 +0200
committerAstatin <[email protected]>2025-07-01 16:53:10 +0200
commit7ccc3f42244eef9385ba878f343a18852fab4dfa (patch)
treefe3feb43ad40a8e2e55b183997a56761538c9473 /modes/dungeon.gbasm
parentbcc4605c06e2b36698ae05eeda1f9078bfbcd2c7 (diff)
Make dungeon flag skip floor count, disable top bar & disable attack menu
Diffstat (limited to 'modes/dungeon.gbasm')
-rw-r--r--modes/dungeon.gbasm20
1 files changed, 16 insertions, 4 deletions
diff --git a/modes/dungeon.gbasm b/modes/dungeon.gbasm
index 14d0381..1d27cc1 100644
--- a/modes/dungeon.gbasm
+++ b/modes/dungeon.gbasm
@@ -112,10 +112,24 @@ STAT_Entrypoint:
Dungeon_VBLANK_Entrypoint:
.SET_WINDOW_LCDC_E
+
+ LD A, $mem_dungeon_flags
+ BIT 3, A
+ JR NZ, =.top_bar.enable
+
+ .DISABLE_TOP_BAR
+
+ LD A, $67
+ LD $reg_lyc, A
+
+ JR =.top_bar.end
+ .top_bar.enable:
+
.ENABLE_TOP_BAR
- LD A, $palette_bold_font
- LD $reg_bg_palette, A
+ LD A, $0a
+ LD $reg_lyc, A
+ .top_bar.end:
CALL $OAM_DMA_Transfer_routine
@@ -135,8 +149,6 @@ Dungeon_VBLANK_Entrypoint:
Skip_VBlank_Dungeon_Update:
; LYC
- LD A, $0a
- LD $reg_lyc, A
.ENABLE_LYC_INTERRUPT
.RESET_INTERRUPTS
EI