Fix up the animator to show the initial form.

This commit is contained in:
Zed A. Shaw 2026-02-06 12:23:17 -05:00
parent 4356b1535e
commit a4ffacdb18
3 changed files with 6 additions and 2 deletions

View file

@ -40,7 +40,7 @@ namespace animator {
$ui.init($sprite_name, $background, new_size.x, new_size.y);
$sprite = $ui.get_sprite();
// need to keep these aroung
// need to keep these around
$pos = $sprite->getPosition();
$scale = $sprite->getScale();
@ -48,6 +48,8 @@ namespace animator {
$window.setVerticalSyncEnabled(VSYNC);
if(FRAME_LIMIT) $window.setFramerateLimit(FRAME_LIMIT);
}
$ui.update_status($anim);
}
void FSM::event(Event ev, std::any data) {