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