Light meter

This commit is contained in:
2014-06-14 19:19:57 -07:00
parent ecd70d5299
commit 394fd13f4e

View File

@@ -1099,7 +1099,7 @@ GameState.prototype.check_input = function()
GameState.prototype.update = function() GameState.prototype.update = function()
{ {
this.check_input(); this.check_input();
this.shadowTexture.update(player.x, player.y, 32, 32); this.shadowTexture.update(player.x-1, player.y-1, 34, 34);
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),