Tiles can have different attributes in different blocks

This commit is contained in:
Zeta_Null 2023-09-13 12:44:30 -04:00
parent 94d9c77070
commit 820c2257bc
374 changed files with 554 additions and 348 deletions

View file

@ -321,14 +321,6 @@ wTilemapEnd::
; This union spans 480 bytes.
SECTION UNION "Miscellaneous", WRAM0
; surrounding tiles
; This buffer determines the size for the rest of the union;
; it uses exactly 480 bytes.
wSurroundingTiles:: ds SURROUNDING_WIDTH * SURROUNDING_HEIGHT
SECTION UNION "Miscellaneous", WRAM0
; box save buffer
; SaveBoxAddress uses this buffer in three steps because it
; needs more space than the buffer can hold.
@ -2454,9 +2446,9 @@ wTilesetBlocksBank:: db
wTilesetBlocksAddress:: dw
wTilesetCollisionBank:: db
wTilesetCollisionAddress:: dw
wTilesetAttributesBank:: db
wTilesetAttributesAddress:: dw
wTilesetAnim:: dw ; bank 3f
ds 2 ; unused
wTilesetPalettes:: dw ; bank 3f
wTilesetEnd::
assert wTilesetEnd - wTileset == TILESET_LENGTH
@ -2709,7 +2701,7 @@ wCurBaseDataEnd::
wCurDamage:: dw
ds 2
wTilesetDataAddress:: dw
wMornEncounterRate:: db
wDayEncounterRate:: db
@ -3523,6 +3515,12 @@ SECTION "News Script RAM", WRAMX
w4_d000:: ds $1000
SECTION "Surrounding Data", WRAMX
wSurroundingTiles:: ds SURROUNDING_WIDTH * SURROUNDING_HEIGHT
wSurroundingAttributes:: ds SURROUNDING_WIDTH * SURROUNDING_HEIGHT
SECTION "GBC Video", WRAMX, ALIGN[8]
; eight 4-color palettes each