mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 23:05:01 +08:00
[ts] Updated sack examples animation name
This commit is contained in:
parent
7446227041
commit
08121daf5e
@ -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);
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user