mirror of
https://github.com/photonstorm/phaser
synced 2025-01-28 12:55:17 +00:00
36 lines
477 B
JavaScript
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;
|