mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Simpler test animation.
This commit is contained in:
parent
d5278e8331
commit
323df5799e
@ -31,9 +31,6 @@
|
||||
|
||||
package com.esotericsoftware.spine;
|
||||
|
||||
import com.esotericsoftware.spine.AnimationState.AnimationStateAdapter;
|
||||
import com.esotericsoftware.spine.attachments.SkeletonAttachment;
|
||||
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
||||
@ -41,6 +38,7 @@ import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||
import com.esotericsoftware.spine.attachments.SkeletonAttachment;
|
||||
|
||||
public class SkeletonAttachmentTest extends ApplicationAdapter {
|
||||
OrthographicCamera camera;
|
||||
@ -68,12 +66,7 @@ public class SkeletonAttachmentTest extends ApplicationAdapter {
|
||||
stateData.setMix("walk", "jump", 0.2f);
|
||||
stateData.setMix("jump", "walk", 0.2f);
|
||||
spineboyState = new AnimationState(stateData);
|
||||
new AnimationStateAdapter() {
|
||||
public void start (int trackIndex) {
|
||||
spineboyState.addAnimation(0, "walk", true, 0);
|
||||
spineboyState.addAnimation(0, "jump", false, 3).setListener(this);
|
||||
}
|
||||
}.start(0);
|
||||
spineboyState.addAnimation(0, "walk", true, 0);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user