From 8a106a2c6124ce4782584d3c369b0f16ea463103 Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 3 Apr 2014 22:27:59 -0400 Subject: Name the tilesets and give them constants. Also clean up the tileset macro and remove placeholders/redundant files. --- macros.asm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'macros.asm') diff --git a/macros.asm b/macros.asm index 90fafdbe..b5d0ff7c 100644 --- a/macros.asm +++ b/macros.asm @@ -54,11 +54,17 @@ 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 -- cgit v1.2.3