diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-29 02:31:32 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-29 02:31:32 -0500 |
commit | d271d6917549074e721f3e5064b77e1ad1dbe44a (patch) | |
tree | cee0f1b9a44aa7394dbf36ee3ad3654dde08df06 /macros/data_macros.asm | |
parent | c84667c4df36918071bb7487c456d7adafb921ca (diff) |
Add warp, sign, and warp_to macros for data/mapObjects definitions
Diffstat (limited to 'macros/data_macros.asm')
-rwxr-xr-x | macros/data_macros.asm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/data_macros.asm b/macros/data_macros.asm index 4c6457be..9085cf76 100755 --- a/macros/data_macros.asm +++ b/macros/data_macros.asm @@ -118,6 +118,28 @@ object: MACRO ENDC ENDM +;\1 x position +;\2 y position +;\3 destination warp id +;\4 destination map ($ff = wLastMap) +warp: MACRO + db \2, \1, \3, \4 +ENDM + +;\1 x position +;\2 y position +;\3 sign id +sign: MACRO + db \2, \1, \3 +ENDM + +;\1 x position +;\2 y position +;\3 map width +warp_to: MACRO + EVENT_DISP \3, \2, \1 +ENDM + ;\1 (byte) = current map id ;\2 (byte) = connected map id ;\3 (byte) = x movement of connection strip |