mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Relocate Board menu OAM to vTiles0 after outdoor sprites to leave room for overworld HUD tiles in vTiles1 (#11)
This commit is contained in:
parent
ea4ab28652
commit
ea31d254fb
@ -181,7 +181,9 @@ pushc
|
|||||||
charmap "\r", $0d
|
charmap "\r", $0d
|
||||||
popc
|
popc
|
||||||
|
|
||||||
; Significant tile equivalences
|
; Background tile equivalences (vTiles1)
|
||||||
DEF OVERWORLD_FRAME_FIRST_TILE EQU "┌"
|
DEF OVERWORLD_FRAME_FIRST_TILE EQU "┌"
|
||||||
DEF BOARD_MENU_BG_FIRST_TILE EQU "A"
|
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
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
LoadBoardMenuGFX::
|
LoadBoardMenuGFX::
|
||||||
ld de, .BoardMenuGFX
|
ld de, .BoardMenuGFX
|
||||||
ld hl, vTiles1
|
ld hl, vTiles0 + BOARD_MENU_BG_FIRST_TILE * LEN_2BPP_TILE
|
||||||
lb bc, BANK(.BoardMenuGFX), 18 * 3
|
lb bc, BANK(.BoardMenuGFX), 18 * 3
|
||||||
call Get2bppViaHDMA
|
call Get2bppViaHDMA
|
||||||
ld de, .BoardMenuOAMGFX
|
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
|
lb bc, BANK(.BoardMenuOAMGFX), 3 * 3 * NUM_BOARD_MENU_ITEMS
|
||||||
call Get2bppViaHDMA
|
call Get2bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user