Light meter

This commit is contained in:
2014-06-14 20:31:33 -07:00
parent 161c7adc1c
commit e9ff6c1d16

View File

@@ -1104,10 +1104,10 @@ GameState.prototype.update_player_lightmeter = function() {
lightValue = 0; lightValue = 0;
this.staticLights.forEach(function(light) { this.staticLights.forEach(function(light) {
var left = player.x; var left = player.x;
var top = player.y; var top = player.y + 32;
if ( player.y < this.y ) if ( player.y < this.y )
top = player.y + 32; top = player.y;
if ( player.x + this.x ) if ( player.x + this.x )
left = player.x + 32; left = player.x + 32;