Reworking the junkmap

This commit is contained in:
2014-06-13 00:09:01 -07:00
parent 48bcb80464
commit 241409fe84

View File

@@ -53,8 +53,8 @@ Light.prototype = Object.create(Phaser.Sprite.prototype);
Light.prototype.constructor = Light;
Light.prototype.update_new_values = function() {
this.radius = parseInt(this.radius);
this.fade = this.radius * parseNumber(this.fade);
this.radius = Integer(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)
}