mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Swapped Transform undefined style.
This commit is contained in:
parent
e887a3a6e8
commit
1bad881139
2 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: 'b0e4a5d0-0457-11e7-a84b-a92b09eaa636'
|
||||
build: 'b16b5aa0-045a-11e7-bb97-672c474987df'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -94,17 +94,20 @@ var Transform = {
|
|||
|
||||
setPosition: function (x, y)
|
||||
{
|
||||
if (x === undefined) { x = 0; }
|
||||
if (y === undefined) { y = x; }
|
||||
|
||||
this.x = (x ? x : 0.0);
|
||||
this.y = (y ? y : 0.0);
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setRotation: function (radians)
|
||||
{
|
||||
this.rotation = (radians ? radians : 0.0);
|
||||
if (radians === undefined) { radians = 0; }
|
||||
|
||||
this.rotation = radians;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue