This commit is contained in:
2014-06-11 20:01:44 -07:00
parent cd9a6620bc
commit 5adfc89d47

View File

@@ -270,7 +270,7 @@ GameState.prototype.updateShadowTexture = function() {
// Iterate through each of the lights and draw the glow // Iterate through each of the lights and draw the glow
this.staticLights.forEach(function(light) { this.staticLights.forEach(function(light) {
if ( ! light.intersectRaw(game.camera.x, game.camera.y, game.width, game.height) ) { if ( ! light.intersectRaw(game.camera.x, game.camera.y, game.width, game.height) ) {
continue; return;
} }
// Randomly change the radius each frame // Randomly change the radius each frame
var radius = light.radius + game.rnd.integerInRange(1,10); var radius = light.radius + game.rnd.integerInRange(1,10);