diff options
author | yenatch <yenatch@gmail.com> | 2017-07-05 17:48:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-05 17:48:21 -0400 |
commit | 124e2eb02c4adc46265e5b34b47ac0c625a24ec3 (patch) | |
tree | 5c0af98d9e49a767f455fff1ceec5d07cb8539b8 /include/sprite.h | |
parent | 123d5cc8b26d2a93fa3981beaccb84377c6ae20f (diff) | |
parent | 813c1846c94fa14b55bf75cf4c14465f1fb26635 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'include/sprite.h')
-rw-r--r-- | include/sprite.h | 6 |
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 { |