Add torch parameters to torch demo

This commit is contained in:
Andrew Kesterson
2014-06-11 11:05:59 -07:00
parent 2ea9256c25
commit b762154c7d

View File

@@ -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) {