diff options
Diffstat (limited to 'macros/map.asm')
-rw-r--r-- | macros/map.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/map.asm b/macros/map.asm index 297646a79..ef62f386f 100644 --- a/macros/map.asm +++ b/macros/map.asm @@ -1,3 +1,29 @@ +map: MACRO +; This is a silly hack to get around an rgbds bug. + +; Ideally: +; db GROUP_\1, MAP_\1 + +\1\@ EQUS "GROUP_\1" +\1\@2 EQUS "MAP_\1" + db \1\@, \1\@2 +ENDM + +roam_map: MACRO +; A map and an arbitrary number of some more maps. + + map \1 + db \2 + + rept \2 + map \3 + shift + endr + + db 0 +ENDM + + person_event: macro db \1 ; sprite db \2 ; y |