Updated to use goblins to test skins.

This commit is contained in:
NathanSweet 2013-04-13 10:12:58 +02:00
parent 977122f41c
commit 2b49c59907

View File

@ -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;