[ts][canvas] Fix flipping in canvas example.

This commit is contained in:
badlogic 2019-03-27 15:14:15 +01:00
parent 91532f19b1
commit 0371344bc7
3 changed files with 8173 additions and 8173 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -71,7 +71,7 @@ function loadSkeleton (name, initialAnimation, skin) {
// Set the scale to apply during parsing, parse the file, and create a new skeleton.
var skeletonData = skeletonJson.readSkeletonData(assetManager.get("assets/" + name + ".json"));
var skeleton = new spine.Skeleton(skeletonData);
skeleton.flipY = true;
skeleton.scaleY = -1;
var bounds = calculateBounds(skeleton);
skeleton.setSkinByName(skin);