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

@ -17,6 +17,8 @@ using namespace animate2;
Animate2 load_animation(const string& name) {
auto anim = animate2::load("assets/animate2.json", "rat_king_boss");
anim.set_form("attack");
anim.transform.looped = false;
anim.sequence.durations = {Random::milliseconds(5, 33), Random::milliseconds(5, 33)};
return anim;