Skip to content

Commit 427d001

Browse files
committed
Added toggleFlipX and toggleFlipY methods
1 parent 5e065d0 commit 427d001

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '6ff2d290-7d5b-11e7-a786-3d8b38c88055'
2+
build: 'b2f19400-7e41-11e7-930d-3bac9f02929f'
33
};
44
module.exports = CHECKSUM;

v3/src/gameobjects/components/Flip.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ var Flip = {
33
flipX: false,
44
flipY: false,
55

6+
toggleFlipX: function ()
7+
{
8+
this.flipX = !this.flipX;
9+
10+
return this;
11+
},
12+
13+
toggleFlipY: function (value)
14+
{
15+
this.flipY = !this.flipY;
16+
17+
return this;
18+
},
19+
620
setFlipX: function (value)
721
{
822
this.flipX = value;

0 commit comments

Comments
 (0)