Light meter

This commit is contained in:
2014-06-14 19:11:35 -07:00
parent bf4b94e9ea
commit 1a4a009265

View File

@@ -965,6 +965,8 @@ GameState.prototype.updateShadowTexture = function() {
}, this); }, this);
this.shadowTexture.dirty = true; this.shadowTexture.dirty = true;
this.shadowTexture.update();
}; };
function delState(spr, state) function delState(spr, state)
@@ -1099,7 +1101,6 @@ GameState.prototype.check_input = function()
GameState.prototype.update = function() GameState.prototype.update = function()
{ {
this.check_input(); this.check_input();
lightcheck = [ lightcheck = [
this.shadowTexture.getPixelRGB(player.x, player.y), this.shadowTexture.getPixelRGB(player.x, player.y),
this.shadowTexture.getPixelRGB(player.x + 32, player.y), this.shadowTexture.getPixelRGB(player.x + 32, player.y),