2022-06-06 14:25:42 -07:00
|
|
|
MACRO map
|
2018-02-03 13:58:49 -08:00
|
|
|
;\1: map name: for the MapAttributes pointer (see data/maps/attributes.asm)
|
|
|
|
;\2: tileset: a TILESET_* constant
|
|
|
|
;\3: environment: TOWN, ROUTE, INDOOR, CAVE, ENVIRONMENT_5, GATE, or DUNGEON
|
2020-03-15 14:26:10 -07:00
|
|
|
;\4: location: a LANDMARK_* constant
|
2018-02-03 13:58:49 -08:00
|
|
|
;\5: music: a MUSIC_* constant
|
|
|
|
;\6: phone service flag: TRUE to prevent phone calls
|
|
|
|
;\7: time of day: a PALETTE_* constant
|
|
|
|
;\8: fishing group: a FISHGROUP_* constant
|
2023-12-24 09:42:07 -08:00
|
|
|
;\9: base coins: 8-bit value
|
2018-02-03 13:58:49 -08:00
|
|
|
db BANK(\1_MapAttributes), \2, \3
|
|
|
|
dw \1_MapAttributes
|
|
|
|
db \4, \5
|
|
|
|
dn \6, \7
|
|
|
|
db \8
|
2023-12-24 09:42:07 -08:00
|
|
|
db \9
|
2018-02-03 13:58:49 -08:00
|
|
|
ENDM
|
2018-01-16 16:56:21 -08:00
|
|
|
|
2018-02-03 13:58:49 -08:00
|
|
|
MapGroupPointers::
|
|
|
|
; pointers to the first map of each map group
|
2021-03-03 19:22:41 -08:00
|
|
|
table_width 2, MapGroupPointers
|
2023-09-02 15:22:23 -07:00
|
|
|
dw MapGroup_Level1 ; 1
|
|
|
|
; dw MapGroup_Level2 ; 2
|
|
|
|
if DEF(_DEBUG)
|
|
|
|
dw MapGroup_DebugLevel1 ; 1
|
2023-10-02 07:11:52 -07:00
|
|
|
dw MapGroup_DebugLevel2 ; 2
|
|
|
|
dw MapGroup_DebugLevel3 ; 3
|
|
|
|
dw MapGroup_DebugLevel4 ; 4
|
|
|
|
dw MapGroup_DebugLevel5 ; 5
|
2023-09-02 15:22:23 -07:00
|
|
|
endc
|
2021-03-03 19:22:41 -08:00
|
|
|
assert_table_length NUM_MAP_GROUPS
|
2018-01-16 16:56:21 -08:00
|
|
|
|
2023-07-25 06:33:08 -07:00
|
|
|
MapGroup_Level1:
|
|
|
|
table_width MAP_LENGTH, MapGroup_Level1
|
2023-12-24 09:42:07 -08:00
|
|
|
map Level1_Map1, TILESET_PLAYERS_ROOM, INDOOR_BUILDING, LANDMARK_LEVEL_1, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_DAY, FISHGROUP_SHORE, 1
|
|
|
|
; map Level1_Map2, TILESET_CHAMPIONS_ROOM, INDOOR_CAVE, LANDMARK_LEVEL_2, MUSIC_GYM, TRUE, PALETTE_NITE | IN_DARKNESS, FISHGROUP_SHORE, 1
|
2023-07-25 06:33:08 -07:00
|
|
|
assert_table_length NUM_LEVEL_1_MAPS
|
2018-01-16 16:56:21 -08:00
|
|
|
|
2023-07-25 06:33:08 -07:00
|
|
|
; MapGroup_Level2:
|
|
|
|
; table_width MAP_LENGTH, MapGroup_Level2
|
|
|
|
; map Level2_Map1 ...
|
|
|
|
; assert_table_length NUM_LEVEL_2_MAPS
|
2023-09-02 15:22:23 -07:00
|
|
|
|
|
|
|
if DEF(_DEBUG)
|
|
|
|
MapGroup_DebugLevel1:
|
|
|
|
table_width MAP_LENGTH, MapGroup_DebugLevel1
|
2023-12-24 09:42:07 -08:00
|
|
|
map DebugLevel1_Map1, TILESET_PLAYERS_ROOM, INDOOR_BUILDING, LANDMARK_DEBUGLEVEL_1, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_DAY, FISHGROUP_SHORE, 1
|
2023-09-02 15:22:23 -07:00
|
|
|
assert_table_length NUM_DEBUGLEVEL_1_MAPS
|
2023-10-02 07:11:52 -07:00
|
|
|
|
|
|
|
MapGroup_DebugLevel2:
|
|
|
|
table_width MAP_LENGTH, MapGroup_DebugLevel2
|
2023-12-24 09:42:07 -08:00
|
|
|
map DebugLevel2_Map1, TILESET_BOARD_DEBUG_2, INDOOR_CAVE, LANDMARK_DEBUGLEVEL_2, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_NITE, FISHGROUP_SHORE, 2
|
|
|
|
map DebugLevel2_Map2, TILESET_BOARD_DEBUG_2, INDOOR_CAVE, LANDMARK_DEBUGLEVEL_2, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_NITE, FISHGROUP_SHORE, 2
|
2023-10-02 07:11:52 -07:00
|
|
|
assert_table_length NUM_DEBUGLEVEL_2_MAPS
|
|
|
|
|
|
|
|
MapGroup_DebugLevel3:
|
|
|
|
table_width MAP_LENGTH, MapGroup_DebugLevel3
|
2023-12-24 09:42:07 -08:00
|
|
|
map DebugLevel3_Map1, TILESET_FOREST, INDOOR_FOREST, LANDMARK_DEBUGLEVEL_3, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE, 3
|
2023-10-02 07:11:52 -07:00
|
|
|
assert_table_length NUM_DEBUGLEVEL_3_MAPS
|
|
|
|
|
|
|
|
MapGroup_DebugLevel4:
|
|
|
|
table_width MAP_LENGTH, MapGroup_DebugLevel4
|
2023-12-24 09:42:07 -08:00
|
|
|
map DebugLevel4_Map1, TILESET_BOARD_DEBUG_1, OUTDOOR_GRASSY, LANDMARK_DEBUGLEVEL_4, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE, 4
|
2023-10-02 07:11:52 -07:00
|
|
|
assert_table_length NUM_DEBUGLEVEL_4_MAPS
|
|
|
|
|
|
|
|
MapGroup_DebugLevel5:
|
|
|
|
table_width MAP_LENGTH, MapGroup_DebugLevel5
|
2023-12-24 09:42:07 -08:00
|
|
|
map DebugLevel5_Map1, TILESET_BOARD_DEBUG_1, OUTDOOR_GRASSY, LANDMARK_DEBUGLEVEL_5, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE, 5
|
2023-10-02 07:11:52 -07:00
|
|
|
assert_table_length NUM_DEBUGLEVEL_5_MAPS
|
2023-09-02 15:22:23 -07:00
|
|
|
endc
|