[ts] Updated sack examples animation name

This commit is contained in:
Davide Tantillo 2024-04-03 13:58:28 +02:00
parent 7446227041
commit 08121daf5e
No known key found for this signature in database
GPG Key ID: 473ABA42CC0FDDC6
2 changed files with 4 additions and 4 deletions

View File

@ -36,8 +36,8 @@
sack.x = window.innerWidth / 2;
sack.y = window.innerHeight / 2 + sack.getBounds().height / 2;
// Set animation "FOA" on track 0, looped.
sack.state.setAnimation(0, "FOA", true);
// Set animation "cape-follow-example" on track 0, looped.
sack.state.setAnimation(0, "cape-follow-example", true);
// Add the display object to the stage.
app.stage.addChild(sack);

View File

@ -45,10 +45,10 @@
var skeletonData = skeletonBinary.readSkeletonData(assetManager.require("assets/sack-pro.skel"));
this.skeleton = new spine.Skeleton(skeletonData);
// Create an AnimationState, and set the "FOA" animation in looping mode.
// Create an AnimationState, and set the "cape-follow-example" animation in looping mode.
var animationStateData = new spine.AnimationStateData(skeletonData);
this.animationState = new spine.AnimationState(animationStateData);
this.animationState.setAnimation(0, "FOA", true);
this.animationState.setAnimation(0, "cape-follow-example", true);
}
update(canvas, delta) {