Reworking the junkmap

This commit is contained in:
2014-06-12 23:56:22 -07:00
parent be113471ca
commit 3a430a9cc3

View File

@@ -47,13 +47,14 @@ var Light = function(game, x, y, key, frame, radius, fade, color_start, color_st
console.log(this);
};
// Lightes are a type of Phaser.Sprite
Light.prototype = Object.create(Phaser.Sprite.prototype);
Light.prototype.constructor = Light;
Light.prototype.update_rect = function() {
this.rect = new Phaser.Rectangle(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2)
}
// Lightes are a type of Phaser.Sprite
Light.prototype = Object.create(Phaser.Sprite.prototype);
Light.prototype.constructor = Light;
var moonlightSettings = {
'map' : {