2023-08-07 04:23:57 -07:00
|
|
|
_LoadOverworldFontAndFrame::
|
2023-09-22 14:12:05 -07:00
|
|
|
ld de, OverworldFontGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1
|
2023-09-22 14:12:05 -07:00
|
|
|
lb bc, BANK(OverworldFontGFX), 64
|
2023-08-12 12:14:46 -07:00
|
|
|
call Get2bppViaHDMA
|
2023-09-22 14:12:05 -07:00
|
|
|
ld de, OverworldFontGFX + 64 * LEN_2BPP_TILE
|
2023-08-12 12:14:46 -07:00
|
|
|
ld hl, vTiles1 tile $40
|
2023-09-22 14:12:05 -07:00
|
|
|
lb bc, BANK(OverworldFontGFX), 48
|
2023-08-12 12:14:46 -07:00
|
|
|
call Get2bppViaHDMA
|
2023-09-22 14:12:05 -07:00
|
|
|
ld de, OverworldFontSpaceGFX
|
2018-01-09 15:08:40 -08:00
|
|
|
ld hl, vTiles2 tile " "
|
2023-09-22 14:12:05 -07:00
|
|
|
lb bc, BANK(OverworldFontSpaceGFX), 1
|
2023-08-12 12:14:46 -07:00
|
|
|
call Get2bppViaHDMA
|
2023-08-07 04:23:57 -07:00
|
|
|
ld a, [wEnvironment]
|
|
|
|
maskbits NUM_ENVIRONMENTS
|
|
|
|
ld bc, OW_TEXTBOX_FRAME_TILES * LEN_2BPP_TILE
|
2023-09-22 14:12:05 -07:00
|
|
|
ld hl, OverworldFrames
|
2023-08-07 04:23:57 -07:00
|
|
|
call AddNTimes
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
2023-08-17 04:51:29 -07:00
|
|
|
ld hl, vTiles0 tile OVERWORLD_FRAME_FIRST_TILE ; $f0
|
2023-09-22 14:12:05 -07:00
|
|
|
lb bc, BANK(OverworldFrames), OW_TEXTBOX_FRAME_TILES
|
|
|
|
jp Get2bppViaHDMA
|
|
|
|
|
|
|
|
RestoreOverworldFontOverBoardMenuGFX::
|
|
|
|
ld de, OverworldFontGFX
|
|
|
|
ld hl, vTiles1
|
2023-09-23 02:50:25 -07:00
|
|
|
lb bc, BANK(OverworldFontGFX), TEXTBOX_INNERW * BOARD_MENU_ITEM_HEIGHT
|
2023-09-22 14:12:05 -07:00
|
|
|
jp Get2bppViaHDMA
|
2017-12-15 17:10:54 -08:00
|
|
|
|
2023-09-22 14:12:05 -07:00
|
|
|
OverworldFontGFX:
|
2017-12-15 17:10:54 -08:00
|
|
|
INCBIN "gfx/font/overworld.2bpp"
|
|
|
|
|
2023-09-22 14:12:05 -07:00
|
|
|
OverworldFontSpaceGFX:
|
2018-01-11 19:16:17 -08:00
|
|
|
INCBIN "gfx/font/overworld_space.2bpp"
|
2023-08-07 04:23:57 -07:00
|
|
|
|
2023-09-22 14:12:05 -07:00
|
|
|
OverworldFrames:
|
|
|
|
table_width OW_TEXTBOX_FRAME_TILES * LEN_2BPP_TILE, OverworldFrames
|
2023-12-14 08:13:07 -08:00
|
|
|
INCBIN "gfx/frames/ow1.2bpp" ; OUTDOOR_GRASSY
|
|
|
|
INCBIN "gfx/frames/ow2.2bpp" ; OUTDOOR_MOUNTAIN
|
|
|
|
INCBIN "gfx/frames/ow3.2bpp" ; OUTDOOR_COAST
|
|
|
|
INCBIN "gfx/frames/ow4.2bpp" ; OUTDOOR_SEA
|
|
|
|
INCBIN "gfx/frames/ow5.2bpp" ; INDOOR_FOREST
|
|
|
|
INCBIN "gfx/frames/ow6.2bpp" ; INDOOR_CAVE
|
|
|
|
INCBIN "gfx/frames/ow7.2bpp" ; INDOOR_ICE_CAVE
|
|
|
|
INCBIN "gfx/frames/ow8.2bpp" ; INDOOR_BUILDING
|
2023-08-07 04:23:57 -07:00
|
|
|
assert_table_length NUM_ENVIRONMENTS
|