[starling] Reverted example changes.

This commit is contained in:
badlogic 2017-10-11 11:10:23 +02:00
parent f31d98506c
commit 902e5e5432
2 changed files with 5 additions and 7 deletions

View File

@ -45,13 +45,13 @@ package spine.examples {
import spine.starling.SkeletonAnimation;
public class CoinExample extends Sprite {
[Embed(source = "/Divico.json", mimeType = "application/octet-stream")]
[Embed(source = "/coin-pro.json", mimeType = "application/octet-stream")]
static public const CoinJson : Class;
[Embed(source = "/Divico.atlas", mimeType = "application/octet-stream")]
[Embed(source = "/coin.atlas", mimeType = "application/octet-stream")]
static public const CoinAtlas : Class;
[Embed(source = "/Divico.png")]
[Embed(source = "/coin.png")]
static public const CoinAtlasTexture : Class;
private var skeleton : SkeletonAnimation;
@ -68,9 +68,7 @@ package spine.examples {
this.y = 600;
skeleton = new SkeletonAnimation(skeletonData);
skeleton.state.data.defaultMix = 2;
skeleton.state.setAnimationByName(0, "airattack1", true);
skeleton.state.addAnimationByName(0, "idle", true, 3);
skeleton.state.setAnimationByName(0, "rotate", true);
skeleton.state.timeScale = 0.5;
skeleton.state.update(0.25);
skeleton.state.apply(skeleton.skeleton);

View File

@ -38,7 +38,7 @@ package spine.examples {
private var _starling : Starling;
public function Main() {
_starling = new Starling(CoinExample, stage);
_starling = new Starling(SpineboyExample, stage);
_starling.enableErrorChecking = true;
_starling.showStats = true;
_starling.skipUnchangedFrames = false;