Light meter

This commit is contained in:
2014-06-14 19:07:42 -07:00
parent dceda49b96
commit bf4b94e9ea

View File

@@ -1101,10 +1101,10 @@ GameState.prototype.update = function()
this.check_input(); this.check_input();
lightcheck = [ lightcheck = [
this.shadowTexture.getRGB(player.x, player.y), this.shadowTexture.getPixelRGB(player.x, player.y),
this.shadowTexture.getRGB(player.x + 32, player.y), this.shadowTexture.getPixelRGB(player.x + 32, player.y),
this.shadowTexture.getRGB(player.x + 32, player.y + 32), this.shadowTexture.getPixelRGB(player.x + 32, player.y + 32),
this.shadowTexture.getRGB(player.x, player.y + 32) this.shadowTexture.getPixelRGB(player.x, player.y + 32)
]; ];
console.log(lightcheck); console.log(lightcheck);