From 2a9460cbddd9740408bcbc1973bb88b9ea679069 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 12 Jun 2014 23:27:15 -0700 Subject: [PATCH] Reworking the junkmap --- moonlight/js/moonlight-skulk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 421a4ff..7cb11cb 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -818,6 +818,8 @@ GameState.prototype.create = function() } } + this.staticLights = game.add.group(); + this.map.createFromObjects('Lights', 97, null, 0, true, false, this.staticLights, lp['class']); player = this.add.sprite((3 * 32), (17 * 32), 'player'); @@ -869,7 +871,6 @@ GameState.prototype.create = function() this.shadowSprite.blendMode = Phaser.blendModes.MULTIPLY; // Create the lights - this.staticLights = game.add.group(); // for (i = 0; i < 50 ; i++ ) { // this.staticLights.add( // new Light(game,