Clean up some data, using macros for multiline list entries

This commit is contained in:
Rangi 2020-07-14 10:21:18 -04:00
parent aa97e196dd
commit f37cf959c9
298 changed files with 5274 additions and 5646 deletions

View file

@ -1,2 +1,7 @@
BikeRidingTilesets::
db OVERWORLD, FOREST, UNDERGROUND, SHIP_PORT, CAVERN, $FF
db OVERWORLD
db FOREST
db UNDERGROUND
db SHIP_PORT
db CAVERN
db -1 ; end

View file

@ -1,37 +1,25 @@
; format: db tileset id, bookshelf tile id, text id
bookshelf_tile: MACRO
db \1, \2
db_tx_pre \3
ENDM
BookshelfTileIDs:
db PLATEAU, $30
db_tx_pre IndigoPlateauStatues
db HOUSE, $3D
db_tx_pre TownMapText
db HOUSE, $1E
db_tx_pre BookOrSculptureText
db MANSION, $32
db_tx_pre BookOrSculptureText
db REDS_HOUSE_1, $32
db_tx_pre BookOrSculptureText
db LAB, $28
db_tx_pre BookOrSculptureText
db LOBBY, $16
db_tx_pre ElevatorText
db GYM, $1D
db_tx_pre BookOrSculptureText
db DOJO, $1D
db_tx_pre BookOrSculptureText
db GATE, $22
db_tx_pre BookOrSculptureText
db MART, $54
db_tx_pre PokemonStuffText
db MART, $55
db_tx_pre PokemonStuffText
db POKECENTER, $54
db_tx_pre PokemonStuffText
db POKECENTER, $55
db_tx_pre PokemonStuffText
db LOBBY, $50
db_tx_pre PokemonStuffText
db LOBBY, $52
db_tx_pre PokemonStuffText
db SHIP, $36
db_tx_pre BookOrSculptureText
db $FF
; tileset id, bookshelf tile id, text id
bookshelf_tile PLATEAU, $30, IndigoPlateauStatues
bookshelf_tile HOUSE, $3D, TownMapText
bookshelf_tile HOUSE, $1E, BookOrSculptureText
bookshelf_tile MANSION, $32, BookOrSculptureText
bookshelf_tile REDS_HOUSE_1, $32, BookOrSculptureText
bookshelf_tile LAB, $28, BookOrSculptureText
bookshelf_tile LOBBY, $16, ElevatorText
bookshelf_tile GYM, $1D, BookOrSculptureText
bookshelf_tile DOJO, $1D, BookOrSculptureText
bookshelf_tile GATE, $22, BookOrSculptureText
bookshelf_tile MART, $54, PokemonStuffText
bookshelf_tile MART, $55, PokemonStuffText
bookshelf_tile POKECENTER, $54, PokemonStuffText
bookshelf_tile POKECENTER, $55, PokemonStuffText
bookshelf_tile LOBBY, $50, PokemonStuffText
bookshelf_tile LOBBY, $52, PokemonStuffText
bookshelf_tile SHIP, $36, BookOrSculptureText
db -1 ; end

View file

@ -1,82 +1,71 @@
Underground_Coll::
db $0b, $0c, $13, $15, $18
coll_tiles: MACRO
REPT _NARG
db \1
shift
ENDR
db -1 ; end
ENDM
Underground_Coll::
coll_tiles $0b, $0c, $13, $15, $18
Overworld_Coll::
db $00, $10, $1b, $20, $21, $23, $2c, $2d, $2e, $30, $31, $33, $39, $3c, $3e, $52, $54, $58, $5b
db -1 ; end
coll_tiles $00, $10, $1b, $20, $21, $23, $2c, $2d, $2e, $30, $31, $33, $39, $3c, $3e, $52, $54, $58, $5b
RedsHouse1_Coll::
RedsHouse2_Coll::
db $01, $02, $03, $11, $12, $13, $14, $1c, $1a
db -1 ; end
coll_tiles $01, $02, $03, $11, $12, $13, $14, $1c, $1a
Mart_Coll::
Pokecenter_Coll::
db $11, $1a, $1c, $3c, $5e
db -1 ; end
coll_tiles $11, $1a, $1c, $3c, $5e
Dojo_Coll::
Gym_Coll::
db $11, $16, $19, $2b, $3c, $3d, $3f, $4a, $4c, $4d, $03
db -1 ; end
coll_tiles $11, $16, $19, $2b, $3c, $3d, $3f, $4a, $4c, $4d, $03
Forest_Coll::
db $1e, $20, $2e, $30, $34, $37, $39, $3a, $40, $51, $52, $5a, $5c, $5e, $5f
db -1 ; end
coll_tiles $1e, $20, $2e, $30, $34, $37, $39, $3a, $40, $51, $52, $5a, $5c, $5e, $5f
House_Coll::
db $01, $12, $14, $28, $32, $37, $44, $54, $5c
db -1 ; end
coll_tiles $01, $12, $14, $28, $32, $37, $44, $54, $5c
ForestGate_Coll::
Museum_Coll::
Gate_Coll::
db $01, $12, $14, $1a, $1c, $37, $38, $3b, $3c, $5e
db -1 ; end
coll_tiles $01, $12, $14, $1a, $1c, $37, $38, $3b, $3c, $5e
Ship_Coll::
db $04, $0d, $17, $1d, $1e, $23, $34, $37, $39, $4a
db -1 ; end
coll_tiles $04, $0d, $17, $1d, $1e, $23, $34, $37, $39, $4a
ShipPort_Coll::
db $0a, $1a, $32, $3b
db -1 ; end
coll_tiles $0a, $1a, $32, $3b
Cemetery_Coll::
db $01, $10, $13, $1b, $22, $42, $52
db -1 ; end
coll_tiles $01, $10, $13, $1b, $22, $42, $52
Interior_Coll::
db $04, $0f, $15, $1f, $3b, $45, $47, $55, $56
db -1 ; end
coll_tiles $04, $0f, $15, $1f, $3b, $45, $47, $55, $56
Cavern_Coll::
db $05, $15, $18, $1a, $20, $21, $22, $2a, $2d, $30
db -1 ; end
coll_tiles $05, $15, $18, $1a, $20, $21, $22, $2a, $2d, $30
db -1 ; unused
coll_tiles ; unused
Lobby_Coll::
db $14, $17, $1a, $1c, $20, $38, $45
db -1 ; end
coll_tiles $14, $17, $1a, $1c, $20, $38, $45
Mansion_Coll::
db $01, $05, $11, $12, $14, $1a, $1c, $2c, $53
db -1 ; end
coll_tiles $01, $05, $11, $12, $14, $1a, $1c, $2c, $53
Lab_Coll::
db $0c, $26, $16, $1e, $34, $37
db -1 ; end
coll_tiles $0c, $26, $16, $1e, $34, $37
Club_Coll::
db $0f, $1a, $1f, $26, $28, $29, $2c, $2d, $2e, $2f, $41
db -1 ; end
coll_tiles $0f, $1a, $1f, $26, $28, $29, $2c, $2d, $2e, $2f, $41
Facility_Coll::
db $01, $10, $11, $13, $1b, $20, $21, $22, $30, $31, $32, $42, $43, $48, $52, $55, $58, $5e
db -1 ; end
coll_tiles $01, $10, $11, $13, $1b, $20, $21, $22, $30, $31, $32, $42, $43, $48, $52, $55, $58, $5e
Plateau_Coll::
db $1b, $23, $2c, $2d, $3b, $45
db -1 ; end
coll_tiles $1b, $23, $2c, $2d, $3b, $45

View file

@ -10,4 +10,4 @@ CutTreeBlockSwaps:
db $3C, $35
db $3F, $35
db $3D, $36
db $FF ; list terminator
db -1 ; end

View file

@ -1,48 +1,56 @@
DoorTileIDPointers:
dbw OVERWORLD, OverworldDoorTileIDs
dbw FOREST, ForestDoorTileIDs
dbw MART, MartDoorTileIDs
dbw HOUSE, HouseDoorTileIDs
dbw FOREST_GATE, TilesetMuseumDoorTileIDs
dbw MUSEUM, TilesetMuseumDoorTileIDs
dbw GATE, TilesetMuseumDoorTileIDs
dbw SHIP, ShipDoorTileIDs
dbw LOBBY, LobbyDoorTileIDs
dbw MANSION, MansionDoorTileIDs
dbw LAB, LabDoorTileIDs
dbw FACILITY, FacilityDoorTileIDs
dbw PLATEAU, PlateauDoorTileIDs
db $ff
dbw OVERWORLD, .OverworldDoorTileIDs
dbw FOREST, .ForestDoorTileIDs
dbw MART, .MartDoorTileIDs
dbw HOUSE, .HouseDoorTileIDs
dbw FOREST_GATE, .TilesetMuseumDoorTileIDs
dbw MUSEUM, .TilesetMuseumDoorTileIDs
dbw GATE, .TilesetMuseumDoorTileIDs
dbw SHIP, .ShipDoorTileIDs
dbw LOBBY, .LobbyDoorTileIDs
dbw MANSION, .MansionDoorTileIDs
dbw LAB, .LabDoorTileIDs
dbw FACILITY, .FacilityDoorTileIDs
dbw PLATEAU, .PlateauDoorTileIDs
db -1 ; end
OverworldDoorTileIDs:
db $1B,$58,$00
door_tiles: MACRO
REPT _NARG
db \1
shift
ENDR
db 0 ; end
ENDM
ForestDoorTileIDs:
db $3a,$00
.OverworldDoorTileIDs:
door_tiles $1B, $58
MartDoorTileIDs:
db $5e,$00
.ForestDoorTileIDs:
door_tiles $3a
HouseDoorTileIDs:
db $54,$00
.MartDoorTileIDs:
door_tiles $5e
TilesetMuseumDoorTileIDs:
db $3b,$00
.HouseDoorTileIDs:
door_tiles $54
ShipDoorTileIDs:
db $1e,$00
.TilesetMuseumDoorTileIDs:
door_tiles $3b
LobbyDoorTileIDs:
db $1c,$38,$1a,$00
.ShipDoorTileIDs:
door_tiles $1e
MansionDoorTileIDs:
db $1a,$1c,$53,$00
.LobbyDoorTileIDs:
door_tiles $1c, $38, $1a
LabDoorTileIDs:
db $34,$00
.MansionDoorTileIDs:
door_tiles $1a, $1c, $53
FacilityDoorTileIDs:
db $43,$58,$1b,$00
.LabDoorTileIDs:
door_tiles $34
PlateauDoorTileIDs:
db $3b,$1b,$00
.FacilityDoorTileIDs:
door_tiles $43, $58, $1b
.PlateauDoorTileIDs:
door_tiles $3b, $1b

View file

@ -1,2 +1,13 @@
DungeonTilesets:
db FOREST, MUSEUM, SHIP, CAVERN, LOBBY, MANSION, GATE, LAB, FACILITY, CEMETERY, GYM, $FF
db FOREST
db MUSEUM
db SHIP
db CAVERN
db LOBBY
db MANSION
db GATE
db LAB
db FACILITY
db CEMETERY
db GYM
db -1 ; end

View file

@ -1,3 +1,7 @@
EscapeRopeTilesets:
db FOREST, CEMETERY, CAVERN, FACILITY, INTERIOR
db $ff ; terminator
db FOREST
db CEMETERY
db CAVERN
db FACILITY
db INTERIOR
db -1 ; end

View file

@ -1,11 +1,11 @@
LedgeTiles:
; (player direction) (tile player standing on) (ledge tile) (input required)
db SPRITE_FACING_DOWN, $2C,$37,D_DOWN
db SPRITE_FACING_DOWN, $39,$36,D_DOWN
db SPRITE_FACING_DOWN, $39,$37,D_DOWN
db SPRITE_FACING_LEFT, $2C,$27,D_LEFT
db SPRITE_FACING_LEFT, $39,$27,D_LEFT
db SPRITE_FACING_RIGHT,$2C,$0D,D_RIGHT
db SPRITE_FACING_RIGHT,$2C,$1D,D_RIGHT
db SPRITE_FACING_RIGHT,$39,$0D,D_RIGHT
db $FF
; player direction, tile player standing on, ledge tile, input required
db SPRITE_FACING_DOWN, $2C, $37, D_DOWN
db SPRITE_FACING_DOWN, $39, $36, D_DOWN
db SPRITE_FACING_DOWN, $39, $37, D_DOWN
db SPRITE_FACING_LEFT, $2C, $27, D_LEFT
db SPRITE_FACING_LEFT, $39, $27, D_LEFT
db SPRITE_FACING_RIGHT, $2C, $0D, D_RIGHT
db SPRITE_FACING_RIGHT, $2C, $1D, D_RIGHT
db SPRITE_FACING_RIGHT, $39, $0D, D_RIGHT
db -1 ; end

View file

@ -7,6 +7,7 @@ tileset: MACRO
ENDM
Tilesets:
; block, gfx, coll, 3 counter tiles, grass tile, permission
tileset Overworld_Block, Overworld_GFX, Overworld_Coll, $FF,$FF,$FF, $52, OUTDOOR
tileset RedsHouse1_Block, RedsHouse1_GFX, RedsHouse1_Coll, $FF,$FF,$FF, $FF, INDOOR
tileset Mart_Block, Mart_GFX, Mart_Coll, $18,$19,$1E, $FF, INDOOR

View file

@ -1,17 +1,25 @@
WarpTileListPointers:
dw .facingDownWarpTiles
dw .facingUpWarpTiles
dw .facingLeftWarpTiles
dw .facingRightWarpTiles
dw .FacingDownWarpTiles
dw .FacingUpWarpTiles
dw .FacingLeftWarpTiles
dw .FacingRightWarpTiles
.facingDownWarpTiles
db $01,$12,$17,$3D,$04,$18,$33,$FF
warp_tiles: MACRO
REPT _NARG
db \1
shift
ENDR
db -1 ; end
ENDM
.facingUpWarpTiles
db $01,$5C,$FF
.FacingDownWarpTiles:
warp_tiles $01, $12, $17, $3D, $04, $18, $33
.facingLeftWarpTiles
db $1A,$4B,$FF
.FacingUpWarpTiles:
warp_tiles $01, $5C
.facingRightWarpTiles
db $0F,$4E,$FF
.FacingLeftWarpTiles:
warp_tiles $1A, $4B
.FacingRightWarpTiles:
warp_tiles $0F, $4E

View file

@ -1,7 +1,7 @@
; format: db tileset id, tile id, value to be put in [wStandingOnWarpPadOrHole]
WarpPadAndHoleData:
; tileset id, tile id, value for [wStandingOnWarpPadOrHole]
db FACILITY, $20, 1 ; warp pad
db FACILITY, $11, 2 ; hole
db CAVERN, $22, 2 ; hole
db INTERIOR, $55, 1 ; warp pad
db $FF
db -1 ; end

View file

@ -1,85 +1,98 @@
WarpTileIDPointers:
dw OverworldWarpTileIDs
dw RedsHouse1WarpTileIDs
dw MartWarpTileIDs
dw ForestWarpTileIDs
dw RedsHouse2WarpTileIDs
dw DojoWarpTileIDs
dw PokecenterWarpTileIDs
dw GymWarpTileIDs
dw HouseWarpTileIDs
dw ForestGateWarpTileIDs
dw MuseumWarpTileIDs
dw UndergroundWarpTileIDs
dw GateWarpTileIDs
dw ShipWarpTileIDs
dw ShipPortWarpTileIDs
dw CemeteryWarpTileIDs
dw InteriorWarpTileIDs
dw CavernWarpTileIDs
dw LobbyWarpTileIDs
dw MansionWarpTileIDs
dw LabWarpTileIDs
dw ClubWarpTileIDs
dw FacilityWarpTileIDs
dw PlateauWarpTileIDs
dw .OverworldWarpTileIDs
dw .RedsHouse1WarpTileIDs
dw .MartWarpTileIDs
dw .ForestWarpTileIDs
dw .RedsHouse2WarpTileIDs
dw .DojoWarpTileIDs
dw .PokecenterWarpTileIDs
dw .GymWarpTileIDs
dw .HouseWarpTileIDs
dw .ForestGateWarpTileIDs
dw .MuseumWarpTileIDs
dw .UndergroundWarpTileIDs
dw .GateWarpTileIDs
dw .ShipWarpTileIDs
dw .ShipPortWarpTileIDs
dw .CemeteryWarpTileIDs
dw .InteriorWarpTileIDs
dw .CavernWarpTileIDs
dw .LobbyWarpTileIDs
dw .MansionWarpTileIDs
dw .LabWarpTileIDs
dw .ClubWarpTileIDs
dw .FacilityWarpTileIDs
dw .PlateauWarpTileIDs
OverworldWarpTileIDs:
db $1B,$58,$FF
.OverworldWarpTileIDs:
db $1B, $58
db -1 ; end
ForestGateWarpTileIDs:
MuseumWarpTileIDs:
GateWarpTileIDs:
.ForestGateWarpTileIDs:
.MuseumWarpTileIDs:
.GateWarpTileIDs:
db $3B
; fallthrough
.RedsHouse1WarpTileIDs:
.RedsHouse2WarpTileIDs:
db $1A, $1C
db -1 ; end
RedsHouse1WarpTileIDs:
RedsHouse2WarpTileIDs:
db $1A,$1C,$FF
.MartWarpTileIDs:
.PokecenterWarpTileIDs:
db $5E
db -1 ; end
MartWarpTileIDs:
PokecenterWarpTileIDs:
db $5E,$FF
.ForestWarpTileIDs:
db $5A, $5C, $3A
db -1 ; end
ForestWarpTileIDs:
db $5A,$5C,$3A,$FF
.DojoWarpTileIDs:
.GymWarpTileIDs:
db $4A
db -1 ; end
DojoWarpTileIDs:
GymWarpTileIDs:
db $4A,$FF
.HouseWarpTileIDs:
db $54, $5C, $32
db -1 ; end
HouseWarpTileIDs:
db $54,$5C,$32,$FF
.ShipWarpTileIDs:
db $37, $39, $1E, $4A
db -1 ; end
ShipWarpTileIDs:
db $37,$39,$1E,$4A,$FF
.InteriorWarpTileIDs:
db $15, $55, $04
db -1 ; end
InteriorWarpTileIDs:
db $15,$55,$04,$FF
.CavernWarpTileIDs:
db $18, $1A, $22
db -1 ; end
CavernWarpTileIDs:
db $18,$1A,$22,$FF
.LobbyWarpTileIDs:
db $1A, $1C, $38
db -1 ; end
LobbyWarpTileIDs:
db $1A,$1C,$38,$FF
.MansionWarpTileIDs:
db $1A, $1C, $53
db -1 ; end
MansionWarpTileIDs:
db $1A,$1C,$53,$FF
.LabWarpTileIDs:
db $34
db -1 ; end
LabWarpTileIDs:
db $34,$FF
FacilityWarpTileIDs:
db $43,$58,$20
CemeteryWarpTileIDs:
.FacilityWarpTileIDs:
db $43, $58, $20
; fallthrough
.CemeteryWarpTileIDs:
db $1B
; fallthrough
.UndergroundWarpTileIDs:
db $13
db -1 ; end
UndergroundWarpTileIDs:
db $13,$FF
PlateauWarpTileIDs:
db $1B,$3B
ShipPortWarpTileIDs:
ClubWarpTileIDs:
db $FF
.PlateauWarpTileIDs:
db $1B, $3B
; fallthrough
.ShipPortWarpTileIDs:
.ClubWarpTileIDs:
db -1 ; end

View file

@ -1,4 +1,12 @@
; tilesets with water
WaterTilesets:
db OVERWORLD, FOREST, DOJO, GYM, SHIP, SHIP_PORT, CAVERN, FACILITY, PLATEAU
db $ff ; terminator
db OVERWORLD
db FOREST
db DOJO
db GYM
db SHIP
db SHIP_PORT
db CAVERN
db FACILITY
db PLATEAU
db -1 ; end