Name the tilesets and give them constants.
Also clean up the tileset macro and remove placeholders/redundant files.
|
@ -27,3 +27,5 @@ INCLUDE "constants/map_dimensions.asm"
|
|||
INCLUDE "constants/connection_constants.asm"
|
||||
INCLUDE "constants/credits_constants.asm"
|
||||
INCLUDE "constants/music_constants.asm"
|
||||
INCLUDE "constants/tilesets.asm"
|
||||
|
||||
|
|
25
constants/tilesets.asm
Normal file
|
@ -0,0 +1,25 @@
|
|||
OVERWORLD EQU 0
|
||||
REDS_HOUSE_1 EQU 1
|
||||
MART EQU 2
|
||||
FOREST EQU 3
|
||||
REDS_HOUSE_2 EQU 4
|
||||
DOJO EQU 5
|
||||
POKECENTER EQU 6
|
||||
GYM EQU 7
|
||||
HOUSE EQU 8
|
||||
FOREST_GATE EQU 9
|
||||
MUSEUM EQU 10
|
||||
UNDERGROUND EQU 11
|
||||
GATE EQU 12
|
||||
SHIP EQU 13
|
||||
SHIP_PORT EQU 14
|
||||
CEMETERY EQU 15
|
||||
INTERIOR EQU 16
|
||||
CAVERN EQU 17
|
||||
LOBBY EQU 18
|
||||
MANSION EQU 19
|
||||
LAB EQU 20
|
||||
CLUB EQU 21
|
||||
FACILITY EQU 22
|
||||
PLATEAU EQU 23
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 861 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1,018 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1,012 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1,013 B |
14
macros.asm
|
@ -54,12 +54,18 @@ IMAP: MACRO ; imap mapid_less_than,x-coordinate,y-coordinate,textpointer
|
|||
ENDM
|
||||
|
||||
; tilesets' headers macro
|
||||
TSETHEAD: MACRO
|
||||
db BANK(\2)
|
||||
dw \1,\2,\3
|
||||
db \4,\5,\6,\7,\8
|
||||
tileset: MACRO
|
||||
db BANK(\2) ; BANK(GFX)
|
||||
dw \1, \2, \3 ; Block, GFX, Coll
|
||||
db \4, \5, \6 ; counter tiles
|
||||
db \7 ; grass tile
|
||||
db \8 ; permission (indoor, cave, outdoor)
|
||||
ENDM
|
||||
|
||||
INDOOR EQU 0
|
||||
CAVE EQU 1
|
||||
OUTDOOR EQU 2
|
||||
|
||||
; macro for two nibbles
|
||||
dn: MACRO
|
||||
db (\1 << 4 | \2)
|
||||
|
|