mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Only flip for Canvas
This commit is contained in:
parent
74cebf0a0e
commit
3f7b406643
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ var ComponentsTransform = require('../../../../src/gameobjects/components/Transf
|
||||||
var ComponentsVisible = require('../../../../src/gameobjects/components/Visible');
|
var ComponentsVisible = require('../../../../src/gameobjects/components/Visible');
|
||||||
var GameObject = require('../../../../src/gameobjects/GameObject');
|
var GameObject = require('../../../../src/gameobjects/GameObject');
|
||||||
var SpineGameObjectRender = require('./SpineGameObjectRender');
|
var SpineGameObjectRender = require('./SpineGameObjectRender');
|
||||||
|
var Matrix4 = require('../../../../src/math/Matrix4');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
|
@ -47,6 +48,8 @@ var SpineGameObject = new Class({
|
||||||
|
|
||||||
this.runtime = plugin.getRuntime();
|
this.runtime = plugin.getRuntime();
|
||||||
|
|
||||||
|
this.mvp = new Matrix4();
|
||||||
|
|
||||||
GameObject.call(this, scene, 'Spine');
|
GameObject.call(this, scene, 'Spine');
|
||||||
|
|
||||||
var data = this.plugin.createSkeleton(key);
|
var data = this.plugin.createSkeleton(key);
|
||||||
|
@ -55,7 +58,7 @@ var SpineGameObject = new Class({
|
||||||
|
|
||||||
var skeleton = data.skeleton;
|
var skeleton = data.skeleton;
|
||||||
|
|
||||||
skeleton.flipY = true;
|
skeleton.flipY = (scene.sys.game.config.renderType === 1);
|
||||||
|
|
||||||
skeleton.setToSetupPose();
|
skeleton.setToSetupPose();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue