This commit is contained in:
2014-06-11 20:02:21 -07:00
parent 5adfc89d47
commit 61f1cff094

View File

@@ -269,7 +269,7 @@ 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) ) {
if ( ! light.intersectsRaw(game.camera.x, game.camera.y, game.width, game.height) ) {
return;
}
// Randomly change the radius each frame