From c2fe016cf67955d3ff81e90dfe1e04614deb30d4 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 11 Jun 2014 11:09:45 -0700 Subject: [PATCH] Add torch parameters to torch demo --- moonlight/js/moonlight-skulk.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 82e019d..71f5d9b 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -251,8 +251,8 @@ GameState.prototype.create = function() ) ); } - this.movingLight = new Torch(game, game.width/2, game.height/2); - this.lights.add(this.movingLight); + //this.movingLight = new Torch(game, game.width/2, game.height/2); + //this.lights.add(this.movingLight); } GameState.prototype.updateShadowTexture = function() { @@ -351,8 +351,8 @@ GameState.prototype.update = function() this.check_input(); this.physics.arcade.collide(player, layer); - this.movingLight.x = player.x; - this.movingLight.y = player.y; + //this.movingLight.x = player.x; + //this.movingLight.y = player.y; this.updateShadowTexture(); }