Remove unused map environment with index 0 (#7), Implement function to draw the overworld textbox (#10)

This commit is contained in:
xCrystal
2023-08-07 13:23:57 +02:00
parent f64bbf700d
commit be5f3ad6e1
24 changed files with 208 additions and 41 deletions

View File

@@ -1,7 +1,6 @@
EnvironmentColorsPointers:
; entries correspond to environment constants (see constants/map_data_constants.asm)
table_width 2, EnvironmentColorsPointers
dw .GrassyColors ; unused
dw .GrassyColors ; OUTDOOR_GRASSY
dw .MountainColors ; OUTDOOR_MOUNTAIN
dw .CoastColors ; OUTDOOR_COAST
@@ -10,7 +9,7 @@ EnvironmentColorsPointers:
dw .CaveColors ; INDOOR_CAVE
dw .IceCaveColors ; INDOOR_ICE_CAVE
dw .BuildingColors ; INDOOR_BUILDING
assert_table_length NUM_ENVIRONMENTS + 1
assert_table_length NUM_ENVIRONMENTS
; Valid indices: $00 - $35 (see gfx/tilesets/bg_tiles.pal)
; assumes that maps with an environment of INDOOR_CAVE and INDOOR_ICE_CAVE always have PALETTE_NITE