phaser/v3/src/components/Flip.js
2017-03-27 23:53:22 +01:00

36 lines
477 B
JavaScript

var Flip = {
flipX: false,
flipY: false,
setFlipX: function (value)
{
this.flipX = value;
return this;
},
setFlipY: function (value)
{
this.flipX = value;
return this;
},
setFlip: function (x, y)
{
this.flipX = x;
this.flipY = y;
return this;
},
resetFlip: function ()
{
this.flipX = false;
this.flipY = false;
}
};
module.exports = Flip;