Swapped Transform undefined style.

This commit is contained in:
Richard Davey 2017-03-09 00:41:21 +00:00
parent e887a3a6e8
commit 1bad881139
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: 'b0e4a5d0-0457-11e7-a84b-a92b09eaa636'
build: 'b16b5aa0-045a-11e7-bb97-672c474987df'
};
module.exports = CHECKSUM;

View file

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