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) ld a, BANK(wOBPals1)
call FarCopyWRAM call FarCopyWRAM
; load stage trophy pals (pal2 to pal5) ; load stage trophy pals (pal2 to pal5)
ld hl, LevelSelectionMenuStageTrophyPals ld hl, LevelSelectionMenuStageTrophiesPals
ld bc, 4 palettes ld bc, 4 palettes
ld a, BANK(wOBPals1) ld a, BANK(wOBPals1)
call FarCopyWRAM 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 ; load daytime and gender-based background pals
ld a, [wPlayerGender] ld a, [wPlayerGender]

View File

@ -880,7 +880,10 @@ LevelSelectionMenuFemalePals:
INCLUDE "gfx/level_selection_menu/background_female.pal" INCLUDE "gfx/level_selection_menu/background_female.pal"
assert_table_length NUM_DAYTIMES assert_table_length NUM_DAYTIMES
LevelSelectionMenuStageTrophyPals: LevelSelectionMenuStageTrophiesPals:
INCLUDE "gfx/level_selection_menu/stage_trophies.pal" 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" INCLUDE "engine/gfx/rgb_fade.asm"

View File

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

View File

@ -0,0 +1,20 @@
; MORN
RGB 31, 31, 31
RGB 31, 27, 22
RGB 31, 24, 16
RGB 00, 00, 00
; DAY
RGB 31, 31, 31
RGB 31, 31, 00
RGB 31, 23, 00
RGB 00, 00, 00
; NITE
RGB 31, 31, 31
RGB 13, 10, 25
RGB 04, 03, 12
RGB 00, 00, 00
; EVE
RGB 31, 31, 31
RGB 31, 18, 12
RGB 28, 13, 06
RGB 00, 00, 00

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B