From af404efb489f0294823a414a9a7fc41c0607fd04 Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 22 Sep 2020 20:15:42 -0400 Subject: Move the 'map' macro to where it is used --- data/maps/maps.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'data') diff --git a/data/maps/maps.asm b/data/maps/maps.asm index aaa74aa..4252579 100644 --- a/data/maps/maps.asm +++ b/data/maps/maps.asm @@ -1,5 +1,16 @@ INCLUDE "constants.asm" +map: MACRO +;\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 +;\4: location: from constants/landmark_constants.asm + db BANK(\1_MapAttributes), \2, \3 + dw \1_MapAttributes + db \4 + db 0, 0 +ENDM + SECTION "data/maps/maps.asm", ROMX db 0 ; ??? -- cgit v1.2.3