mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added toggleFlipX and toggleFlipY methods
This commit is contained in:
parent
5e065d0069
commit
427d001c42
2 changed files with 15 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '6ff2d290-7d5b-11e7-a786-3d8b38c88055'
|
||||
build: 'b2f19400-7e41-11e7-930d-3bac9f02929f'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -3,6 +3,20 @@ var Flip = {
|
|||
flipX: false,
|
||||
flipY: false,
|
||||
|
||||
toggleFlipX: function ()
|
||||
{
|
||||
this.flipX = !this.flipX;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
toggleFlipY: function (value)
|
||||
{
|
||||
this.flipY = !this.flipY;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setFlipX: function (value)
|
||||
{
|
||||
this.flipX = value;
|
||||
|
|
Loading…
Add table
Reference in a new issue