Can indicate that a animation is flipped, which will *-1 on the x.
This commit is contained in:
parent
c4fcb41c34
commit
2ecd8528ea
7 changed files with 45 additions and 13 deletions
|
|
@ -129,6 +129,7 @@ namespace components {
|
|||
bool stationary = false;
|
||||
bool toggled = false;
|
||||
bool looped = false;
|
||||
bool flipped = false;
|
||||
|
||||
int current = 0;
|
||||
bool playing = false;
|
||||
|
|
@ -163,8 +164,10 @@ namespace components {
|
|||
ENROLL_COMPONENT(Motion, dx, dy, random);
|
||||
ENROLL_COMPONENT(Combat, hp, max_hp, damage, dead);
|
||||
ENROLL_COMPONENT(Device, config, events);
|
||||
ENROLL_COMPONENT(Animation, min_x, min_y, max_x, max_y, simple, frames,
|
||||
speed, easing, motion, ease_rate, scaled, stationary, toggled, looped);
|
||||
ENROLL_COMPONENT(Animation, min_x, min_y,
|
||||
max_x, max_y, simple, frames,
|
||||
speed, easing, motion, ease_rate,
|
||||
scaled, stationary, toggled, looped, flipped);
|
||||
ENROLL_COMPONENT(Sound, attack, death);
|
||||
ENROLL_COMPONENT(Collision, has);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue