Fixed a test that failed because loop was set on the tranform being used.
This commit is contained in:
parent
c092b82dfc
commit
ce3d142208
3 changed files with 15 additions and 9 deletions
|
|
@ -80,7 +80,7 @@ namespace animator {
|
|||
void FSM::run_animation() {
|
||||
if($anim.playing) {
|
||||
$anim.update();
|
||||
$anim.apply(*$sprite);
|
||||
if(!$anim.transform.simple) $anim.apply(*$sprite);
|
||||
$anim.motion(*$sprite, $pos, $scale);
|
||||
}
|
||||
}
|
||||
|
|
@ -91,8 +91,6 @@ namespace animator {
|
|||
for(int i = 0; i < ticks; i++) {
|
||||
event(animator::Event::TICK, {});
|
||||
}
|
||||
|
||||
check_update();
|
||||
}
|
||||
|
||||
void FSM::check_update() {
|
||||
|
|
@ -189,6 +187,7 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
while(main.active()) {
|
||||
main.tick();
|
||||
main.check_update();
|
||||
main.render();
|
||||
main.handle_keyboard_mouse();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue