diff options
author | IIMarckus <iimarckus@gmail.com> | 2010-12-27 18:23:31 -0700 |
---|---|---|
committer | IIMarckus <iimarckus@gmail.com> | 2010-12-27 18:23:31 -0700 |
commit | 2cad63f7bb9aaf2429b3d2b84530ec08928c929e (patch) | |
tree | 038b7aba9850966252e49806d932bec6c298a921 /constants.asm | |
parent | 92b4f52d6eb8cc6d58ecb817aa0e544240d42a9f (diff) |
Add town map locations. Thanks once again to Sawakita.
hg-commit-id: 294cd2e30768
Diffstat (limited to 'constants.asm')
-rw-r--r-- | constants.asm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm index 52654b2e..e867ab5c 100644 --- a/constants.asm +++ b/constants.asm @@ -1,3 +1,25 @@ +; external map entry macro +EMAP: MACRO ; emap x-coordinate,y-coordinate,textpointer +; the appearance of towns and routes in the town map, indexed by map id + ; nybble: y-coordinate + ; nybble: x-coordinate + ; word : pointer to map name + db (\1 + (\2 << 4)) + dw \3 + ENDM + +; internal map entry macro +IMAP: MACRO ; imap mapid_less_than,x-coordinate,y-coordinate,textpointer +; the appearance of buildings and dungeons in the town map + ; byte : maximum map id subject to this rule + ; nybble: y-coordinate + ; nybble: x-coordinate + ; word : pointer to map name + db \1 + db \2 + \3 << 4 + dw \4 + ENDM + ; tilesets' headers macro TSETHEAD: MACRO db BANK(\2) |