mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
Updated to use goblins to test skins.
This commit is contained in:
parent
977122f41c
commit
2b49c59907
@ -58,9 +58,11 @@ namespace Spine {
|
||||
|
||||
protected override void LoadContent () {
|
||||
skeletonRenderer = new SkeletonRenderer(GraphicsDevice);
|
||||
Atlas atlas = new Atlas(GraphicsDevice, "data/spineboy.atlas");
|
||||
Atlas atlas = new Atlas(GraphicsDevice, "data/goblins.atlas");
|
||||
SkeletonJson json = new SkeletonJson(atlas);
|
||||
skeleton = new Skeleton(json.readSkeletonData("spineboy", File.ReadAllText("data/spineboy.json")));
|
||||
skeleton = new Skeleton(json.readSkeletonData("goblins", File.ReadAllText("data/goblins.json")));
|
||||
skeleton.SetSkin("goblingirl");
|
||||
skeleton.SetSlotsToBindPose();
|
||||
animation = skeleton.Data.FindAnimation("walk");
|
||||
|
||||
skeleton.RootBone.X = 320;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user