summaryrefslogtreecommitdiff
path: root/macros/scripts/gfx_anims.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-07-10 20:06:26 -0400
committerGitHub <noreply@github.com>2020-07-10 20:06:26 -0400
commit30c327276c937e06e3c8b7990cb9029937739f8e (patch)
tree5a0bef24e07c39c80ea3690f32af95993b6dccae /macros/scripts/gfx_anims.asm
parentab0c582cbc79df7226357bc23b9e8254bcc4f053 (diff)
parenta19abb50459f29c895af53c57b477c03d1e0f644 (diff)
Merge pull request #55 from Rangi42/master
Remove enum; add const_skip and const_next
Diffstat (limited to 'macros/scripts/gfx_anims.asm')
-rw-r--r--macros/scripts/gfx_anims.asm44
1 files changed, 22 insertions, 22 deletions
diff --git a/macros/scripts/gfx_anims.asm b/macros/scripts/gfx_anims.asm
index a6241a0d..61c18fa8 100644
--- a/macros/scripts/gfx_anims.asm
+++ b/macros/scripts/gfx_anims.asm
@@ -12,42 +12,42 @@ endc
db x
ENDM
- enum_start $fc
+ const_def -1, -1
- enum delanim_command ; $fc
-delanim: MACRO
-; Removes the object from the screen, as opposed to `endanim` which just stops all motion
- db delanim_command
+ const endanim_command ; $ff
+endanim: MACRO
+ db endanim_command
+ENDM
+
+ const dorestart_command ; $fe
+dorestart: MACRO
+ db dorestart_command
ENDM
- enum dowait_command ; $fd
+ const dowait_command ; $fd
dowait: MACRO
db dowait_command
db \1 ; frames
ENDM
- enum dorestart_command ; $fe
-dorestart: MACRO
- db dorestart_command
-ENDM
-
- enum endanim_command ; $ff
-endanim: MACRO
- db endanim_command
+ const delanim_command ; $fc
+delanim: MACRO
+; Removes the object from the screen, as opposed to `endanim` which just stops all motion
+ db delanim_command
ENDM
; Used for pic animations
-__enum__ = $fd
-
- enum dorepeat_command ; $fd
-dorepeat: MACRO
- db dorepeat_command
- db \1 ; command offset to jump to
-ENDM
+ const_def -2, -1
- enum setrepeat_command ; $fe
+ const setrepeat_command ; $fe
setrepeat: MACRO
db setrepeat_command
db \1 ; amount of times to repeat
ENDM
+
+ const dorepeat_command ; $fd
+dorepeat: MACRO
+ db dorepeat_command
+ db \1 ; command offset to jump to
+ENDM