From a62f30ba5c76e84242aa11bc996c01b8553a4486 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 12 Jul 2014 08:38:31 -0700 Subject: [PATCH] Modify the alpha of the light meter as well as the scale --- moonlight/src/GameStates.js | 1 + 1 file changed, 1 insertion(+) diff --git a/moonlight/src/GameStates.js b/moonlight/src/GameStates.js index cfe7fe5..e1b4078 100644 --- a/moonlight/src/GameStates.js +++ b/moonlight/src/GameStates.js @@ -293,6 +293,7 @@ GameState.prototype.update_player_lightmeter = function() { player.lightmeter += lightValue; player.lightmeter = Math.min(player.lightmeter, 1.0); this.lightbar.scale.y = player.lightmeter; + this.lightbar.alpha = 0.5 + (player.lightmeter / 2); //this.lightbar_crop.width = ((this.lightbar_image.width) * player.lightmeter); //this.lightbar.crop(this.lightbar_crop); }