From 73dcba8306917c5e6adb781fc6b984eb94848bda Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 19:44:41 -0700 Subject: [PATCH] Light meter --- moonlight/js/moonlight-skulk.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 4034276..ac91c0b 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1100,10 +1100,10 @@ GameState.prototype.update = function() { this.check_input(); lightcheck = [ - this.shadowTexture.pixels(player.x + player.y), - this.shadowTexture.pixels(player.x + 32 + player.y), - this.shadowTexture.pixels(player.x + 32 + player.y + 32), - this.shadowTexture.pixels(player.x + player.y + 32) + this.shadowTexture.pixels[player.x + player.y], + this.shadowTexture.pixels[player.x + 32 + player.y], + this.shadowTexture.pixels[player.x + 32 + player.y + 32], + this.shadowTexture.pixels[player.x + player.y + 32] ]; console.log(lightcheck);