diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 10a8758..0c70d15 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1101,10 +1101,10 @@ GameState.prototype.update = function() this.check_input(); lightcheck = [ - this.shadowTexture.getRGB(player.x, player.y), - this.shadowTexture.getRGB(player.x + 32, player.y), - this.shadowTexture.getRGB(player.x + 32, player.y + 32), - this.shadowTexture.getRGB(player.x, player.y + 32) + this.shadowTexture.getPixelRGB(player.x, player.y), + this.shadowTexture.getPixelRGB(player.x + 32, player.y), + this.shadowTexture.getPixelRGB(player.x + 32, player.y + 32), + this.shadowTexture.getPixelRGB(player.x, player.y + 32) ]; console.log(lightcheck);