mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed goblin example.
This commit is contained in:
parent
d8d5405ba3
commit
3b5109032c
@ -137,10 +137,10 @@ void spineboy () {
|
|||||||
|
|
||||||
void goblins () {
|
void goblins () {
|
||||||
// Load atlas, skeleton, and animations.
|
// Load atlas, skeleton, and animations.
|
||||||
Atlas* atlas = Atlas_createFromFile("data/goblins-ffd.atlas", 0);
|
Atlas* atlas = Atlas_createFromFile("data/goblins-mesh.atlas", 0);
|
||||||
SkeletonJson* json = SkeletonJson_create(atlas);
|
SkeletonJson* json = SkeletonJson_create(atlas);
|
||||||
json->scale = 1.4f;
|
json->scale = 1.4f;
|
||||||
SkeletonData *skeletonData = SkeletonJson_readSkeletonDataFile(json, "data/goblins-ffd.json");
|
SkeletonData *skeletonData = SkeletonJson_readSkeletonDataFile(json, "data/goblins-mesh.json");
|
||||||
if (!skeletonData) {
|
if (!skeletonData) {
|
||||||
printf("Error: %s\n", json->error);
|
printf("Error: %s\n", json->error);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user