This commit is contained in:
2014-06-11 20:01:00 -07:00
parent 66138c8715
commit cd9a6620bc

View File

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