mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[cocos2d-x] Fixed up scaling factor in BatchingExample
This commit is contained in:
parent
ba4abfa6d8
commit
6c581880b0
@ -53,7 +53,7 @@ bool BatchingExample::init () {
|
|||||||
|
|
||||||
// Load the skeleton data.
|
// Load the skeleton data.
|
||||||
spSkeletonJson* json = spSkeletonJson_createWithLoader(_attachmentLoader);
|
spSkeletonJson* json = spSkeletonJson_createWithLoader(_attachmentLoader);
|
||||||
json->scale = 0.1f; // Resizes skeleton data to 60% of the size it was in Spine.
|
json->scale = 0.6f; // Resizes skeleton data to 60% of the size it was in Spine.
|
||||||
_skeletonData = spSkeletonJson_readSkeletonDataFile(json, "spineboy.json");
|
_skeletonData = spSkeletonJson_readSkeletonDataFile(json, "spineboy.json");
|
||||||
CCASSERT(_skeletonData, json->error ? json->error : "Error reading skeleton data file.");
|
CCASSERT(_skeletonData, json->error ? json->error : "Error reading skeleton data file.");
|
||||||
spSkeletonJson_dispose(json);
|
spSkeletonJson_dispose(json);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user