summaryrefslogtreecommitdiff
path: root/macros/scripts/gfx_anims.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-08 16:20:15 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-10 20:03:46 -0400
commitc086de0c986330b09cd5e9fa384b950107ee4955 (patch)
tree6854c5ea9c5311b677bfbcae0616f0979b754060 /macros/scripts/gfx_anims.asm
parent6ca82e5c86279258bfd4b21195d4521f26082fd4 (diff)
Use const_skip and const_next macros for brevity
Diffstat (limited to 'macros/scripts/gfx_anims.asm')
-rw-r--r--macros/scripts/gfx_anims.asm40
1 files changed, 20 insertions, 20 deletions
diff --git a/macros/scripts/gfx_anims.asm b/macros/scripts/gfx_anims.asm
index ded61b87f..61c18fa8b 100644
--- a/macros/scripts/gfx_anims.asm
+++ b/macros/scripts/gfx_anims.asm
@@ -12,12 +12,16 @@ endc
db x
ENDM
- const_def $fc
+ const_def -1, -1
- const 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
const dowait_command ; $fd
@@ -26,28 +30,24 @@ dowait: MACRO
db \1 ; frames
ENDM
- const dorestart_command ; $fe
-dorestart: MACRO
- db dorestart_command
-ENDM
-
- const 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
-const_value = $fd
-
- const dorepeat_command ; $fd
-dorepeat: MACRO
- db dorepeat_command
- db \1 ; command offset to jump to
-ENDM
+ const_def -2, -1
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