Overworld HUD implementation (#15)

This commit is contained in:
xCrystal
2023-08-29 18:33:20 +02:00
parent b275d642cd
commit f386a63cf8
21 changed files with 214 additions and 98 deletions

View File

@@ -148,7 +148,7 @@ if DEF(_DEBUG)
hDebugRoomMenuPage:: db
endc
hWindowHUD::
hWindowHUDLY::
; Window HUD is enabled when non-0.
; Its value indicates the last scanline that the window spans from the top.
db

View File

@@ -697,12 +697,11 @@ wPuzzlePieces:: ds 6 * 6
ENDU
SECTION "Unused Map Buffer", WRAM0
SECTION "Overworld HUD", WRAM0
; This was a buffer for map-related pointers in the 1997 G/S prototype.
; See wMapBuffer in pokegold-spaceworld's wram.asm.
wUnusedMapBuffer:: ds 24
wUnusedMapBufferEnd::
wOverworldHUDTiles:: ds SCREEN_WIDTH
wOverworldHUDTilesEnd::
ds 4
SECTION UNION "Overworld Map", WRAM0
@@ -933,8 +932,8 @@ SECTION "Video", WRAM0
UNION
; bg map
wBGMapBuffer:: ds 40
wBGMapPalBuffer:: ds 40
wBGMapBuffer:: ds 2 * SCREEN_WIDTH
wBGMapPalBuffer:: ds 2 * SCREEN_WIDTH
wBGMapBufferPointers:: ds 20 * 2
wBGMapBufferEnd::
@@ -1276,6 +1275,10 @@ wMinutesSince:: db
wHoursSince:: db
wDaysSince:: db
wWhichHUD::
; index to LoadHUD
db
SECTION "WRAM 1", WRAMX