Relocate Board menu OAM to vTiles0 after outdoor sprites to leave room for overworld HUD tiles in vTiles1 (#11)

This commit is contained in:
xCrystal 2023-09-02 13:21:57 +02:00
parent ea4ab28652
commit ea31d254fb
2 changed files with 6 additions and 4 deletions

View File

@ -181,7 +181,9 @@ pushc
charmap "\r", $0d
popc
; Significant tile equivalences
; Background tile equivalences (vTiles1)
DEF OVERWORLD_FRAME_FIRST_TILE EQU "┌"
DEF BOARD_MENU_BG_FIRST_TILE EQU "A"
DEF BOARD_MENU_OAM_FIRST_TILE EQU BOARD_MENU_BG_FIRST_TILE + 18 * 3
; Object tile locations (vTiles0)
DEF BOARD_MENU_OAM_FIRST_TILE EQU $20

View File

@ -1,10 +1,10 @@
LoadBoardMenuGFX::
ld de, .BoardMenuGFX
ld hl, vTiles1
ld hl, vTiles0 + BOARD_MENU_BG_FIRST_TILE * LEN_2BPP_TILE
lb bc, BANK(.BoardMenuGFX), 18 * 3
call Get2bppViaHDMA
ld de, .BoardMenuOAMGFX
ld hl, vTiles1 + (18 * 3) * LEN_2BPP_TILE
ld hl, vTiles0 + BOARD_MENU_OAM_FIRST_TILE * LEN_2BPP_TILE
lb bc, BANK(.BoardMenuOAMGFX), 3 * 3 * NUM_BOARD_MENU_ITEMS
call Get2bppViaHDMA
ret