summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2020-03-27 14:11:59 -0500
committerGitHub <noreply@github.com>2020-03-27 14:11:59 -0500
commite2e8bf6a8477af254ea7057028f72ac918b62005 (patch)
treeffed0137cf81880afa4b0ec2fa30300565996f4b /macros.asm
parentab7c9634be9c7d26c66ebd69b2fcfe3994d627be (diff)
parentdc503346cab810ad976c3943ad1acca13c69693d (diff)
Merge pull request #47 from ValientOrc98/master
Added warp, warp_to and sign compatibility
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 28aad1e5..2835c99a 100644
--- a/macros.asm
+++ b/macros.asm
@@ -715,6 +715,27 @@ endchannel: MACRO
db $FF
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