From 2ea9256c25da7cc6302b916f436a25509be7b6cf Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 11 Jun 2014 11:05:34 -0700 Subject: [PATCH] Add torch parameters to torch demo --- moonlight/js/moonlight-skulk.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index e466b1b..08ca514 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -265,10 +265,7 @@ GameState.prototype.updateShadowTexture = function() { // Draw shadow this.shadowTexture.context.fillStyle = 'rgb(50, 50, 50)'; - this.shadowTexture.context.fillRect(game.camera.x - 50, - game.camera.y - 50, - game.width + 50, - game.height + 50); + this.shadowTexture.context.fillRect(0, 0, game.width, game.height); // Iterate through each of the lights and draw the glow this.lights.forEach(function(light) {