mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[starling] Reverted example changes.
This commit is contained in:
parent
f31d98506c
commit
902e5e5432
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user