Level selection menu: GFX for ToD symbols (#12)

This commit is contained in:
xCrystal
2024-01-25 18:06:01 +01:00
parent 533f7c259e
commit c6ed364122
5 changed files with 41 additions and 2 deletions

View File

@@ -583,10 +583,19 @@ _CGB_LevelSelectionMenu:
ld a, BANK(wOBPals1)
call FarCopyWRAM
; load stage trophy pals (pal2 to pal5)
ld hl, LevelSelectionMenuStageTrophyPals
ld hl, LevelSelectionMenuStageTrophiesPals
ld bc, 4 palettes
ld a, BANK(wOBPals1)
call FarCopyWRAM
; load daytime-based ToD symbol pals (pal 6)
ld a, [wTimeOfDay]
maskbits NUM_DAYTIMES
ld bc, 1 palettes
ld hl, LevelSelectionMenuTimeOfDaySymbolsPals
call AddNTimes
ld bc, 1 palettes
ld a, BANK(wOBPals1)
call FarCopyWRAM
; load daytime and gender-based background pals
ld a, [wPlayerGender]

View File

@@ -880,7 +880,10 @@ LevelSelectionMenuFemalePals:
INCLUDE "gfx/level_selection_menu/background_female.pal"
assert_table_length NUM_DAYTIMES
LevelSelectionMenuStageTrophyPals:
LevelSelectionMenuStageTrophiesPals:
INCLUDE "gfx/level_selection_menu/stage_trophies.pal"
LevelSelectionMenuTimeOfDaySymbolsPals:
INCLUDE "gfx/level_selection_menu/time_of_day_symbols.pal"
INCLUDE "engine/gfx/rgb_fade.asm"

View File

@@ -174,6 +174,10 @@ LevelSelectionMenu_LoadGFX:
; ld de, vTiles0 + (24 + NUM_DIRECTIONS) tiles
ld bc, NUM_LEVEL_STAGES * 2 tiles
call FarCopyBytes
ld hl, LevelSelectionMenuTimeOfDaySymbolsGFX
; ld de, vTiles0 + (24 + NUM_DIRECTIONS + NUM_LEVEL_STAGES * 2) tiles
ld bc, NUM_DAYTIMES * 4 tiles
call FarCopyBytes
ret
LevelSelectionMenu_InitTilemap:
@@ -1044,3 +1048,6 @@ INCBIN "gfx/level_selection_menu/directional_arrows.2bpp"
LevelSelectionMenuStageTrophiesGFX:
INCBIN "gfx/level_selection_menu/stage_trophies.2bpp"
LevelSelectionMenuTimeOfDaySymbolsGFX:
INCBIN "gfx/level_selection_menu/time_of_day_symbols.2bpp"