summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-04-03 22:27:59 -0400
committeryenatch <yenatch@gmail.com>2014-04-03 22:46:39 -0400
commit8a106a2c6124ce4782584d3c369b0f16ea463103 (patch)
tree61306c822c18758ba84873f6d9d0229d229ec0b6 /macros.asm
parent56a31151410e09a0169a7ab6dce4542f334c49b7 (diff)
Name the tilesets and give them constants.
Also clean up the tileset macro and remove placeholders/redundant files.
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm14
1 files changed, 10 insertions, 4 deletions
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