mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
Fixed SFML.
This commit is contained in:
parent
b083ce8816
commit
d776be8078
@ -52,8 +52,8 @@ void spineboy () {
|
|||||||
skeleton->flipY = false;
|
skeleton->flipY = false;
|
||||||
Skeleton_setToBindPose(skeleton);
|
Skeleton_setToBindPose(skeleton);
|
||||||
|
|
||||||
Skeleton_getRootBone(skeleton)->x = 320;
|
skeleton->root->x = 320;
|
||||||
Skeleton_getRootBone(skeleton)->y = 420;
|
skeleton->root->y = 420;
|
||||||
Skeleton_updateWorldTransform(skeleton);
|
Skeleton_updateWorldTransform(skeleton);
|
||||||
|
|
||||||
AnimationState_setAnimationByName(drawable->state, "walk", true);
|
AnimationState_setAnimationByName(drawable->state, "walk", true);
|
||||||
@ -104,8 +104,8 @@ void goblins () {
|
|||||||
Skeleton_setSlotsToBindPose(skeleton);
|
Skeleton_setSlotsToBindPose(skeleton);
|
||||||
Skeleton_setAttachment(skeleton, "left hand item", "dagger");
|
Skeleton_setAttachment(skeleton, "left hand item", "dagger");
|
||||||
|
|
||||||
Skeleton_getRootBone(skeleton)->x = 320;
|
skeleton->root->x = 320;
|
||||||
Skeleton_getRootBone(skeleton)->y = 420;
|
skeleton->root->y = 420;
|
||||||
Skeleton_updateWorldTransform(skeleton);
|
Skeleton_updateWorldTransform(skeleton);
|
||||||
|
|
||||||
AnimationState_setAnimation(drawable->state, walkAnimation, true);
|
AnimationState_setAnimation(drawable->state, walkAnimation, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user