Reworking the junkmap

This commit is contained in:
2014-06-13 00:09:43 -07:00
parent 241409fe84
commit 4273d25b03

View File

@@ -53,7 +53,7 @@ Light.prototype = Object.create(Phaser.Sprite.prototype);
Light.prototype.constructor = Light;
Light.prototype.update_new_values = function() {
this.radius = Integer(this.radius);
this.radius = parseInt(this.radius);
this.fade = this.radius * Number(this.fade);
this.flicker = Boolean(this.flicker);
this.rect = new Phaser.Rectangle(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2)