From 50b72471e3afed8569c0a11ced2cc58705345178 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 15 Jun 2014 11:55:00 -0700 Subject: [PATCH] Map work --- moonlight/js/moonlight-skulk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 627cc94..0097ba5 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -890,6 +890,8 @@ GameState.prototype.create = function() this.aiSprites.forEach(function(spr) { spr.update_new_values(); }, this) + player = this.add.sprite((10 * 32), (17 * 32), 'player'); + player.lightmeter = 0; }; if ( lp['collides'] == true ) { @@ -920,8 +922,6 @@ GameState.prototype.create = function() this.effectSprites.forEach(function(spr) { spr.update_new_values(); }, this) - player = this.add.sprite((10 * 32), (17 * 32), 'player'); - player.lightmeter = 0; this.shadowTexture = game.add.bitmapData(game.world.width, game.world.height); // drop this lower to make the map darker