summaryrefslogtreecommitdiff
path: root/include/sprite.h
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-25 20:12:52 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-25 20:12:52 -0400
commitf85513f76999c79c6355711fcefaf058d02c7c46 (patch)
treead60d6edad654974f1ef82538da0a402abd69903 /include/sprite.h
parent637774362fdbedd8a54b651e6196a1e1a4f4c093 (diff)
parent06b6cada0ddedc62063171703ba6607019751a9a (diff)
Merge branch 'master' of https://github.com/pret/pokeruby into sound_check_menu
Diffstat (limited to 'include/sprite.h')
-rw-r--r--include/sprite.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sprite.h b/include/sprite.h
index 3f893132e..a65e71bd9 100644
--- a/include/sprite.h
+++ b/include/sprite.h
@@ -73,6 +73,8 @@ union AnimCmd
#define ANIMCMD_FRAME(...) \
{.frame = {__VA_ARGS__}}
+#define ANIMCMD_LOOP(_count) \
+ {.loop = {.type = -3, .count = _count}}
#define ANIMCMD_JUMP(_target) \
{.jump = {.type = -2, .target = _target}}
#define ANIMCMD_END \
@@ -118,6 +120,10 @@ union AffineAnimCmd
{.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}}
#define AFFINEANIMCMD_END \
{.type = AFFINEANIMCMDTYPE_END}
+#define AFFINEANIMCMD_LOOP(_count) \
+ {.loop = {.type = AFFINEANIMCMDTYPE_LOOP, .count = _count}}
+#define AFFINEANIMCMD_JUMP(_target) \
+ {.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}}
struct AffineAnimState
{