Light meter

This commit is contained in:
2014-06-14 20:17:04 -07:00
parent 6e04c1c365
commit 5b498bcf42

View File

@@ -1101,7 +1101,7 @@ GameState.prototype.check_input = function()
GameState.prototype.update_player_lightmeter = function() {
lightValue = 0;
this.staticLights.forEach(function(light) {
line = new Phaser.Line(player.x + 16, player.y + 16, light.x, light.y);
line = new Phaser.Line(player.x + 16, player.y + 16, light.x + 16, light.y + 16);
if ( line.length > light.radius )
return;
var ll = line.length;