Added toggleFlipX and toggleFlipY methods

This commit is contained in:
Richard Davey 2017-08-11 04:06:37 +01:00
parent 5e065d0069
commit 427d001c42
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '6ff2d290-7d5b-11e7-a786-3d8b38c88055'
build: 'b2f19400-7e41-11e7-930d-3bac9f02929f'
};
module.exports = CHECKSUM;

View file

@ -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;