From 150fc28435373c14be70027b0ced2ac5c0555a47 Mon Sep 17 00:00:00 2001 From: Zott820 Date: Thu, 27 Nov 2014 01:10:38 -0800 Subject: [PATCH] Update screens.js Fix loading screen alphas having negative values and Loading jumping to the last frame. --- js/screens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/screens.js b/js/screens.js index 4006c18..a070a0c 100755 --- a/js/screens.js +++ b/js/screens.js @@ -24,7 +24,7 @@ function LoadingScreen( stage, gameState ){ gameState.pubsub.subscribe( "Load", function(percent){ textContent.text = (percent * 25).toFixed(2) + " %"; - var wholeNum = percent.toFixed(0); + var wholeNum = Math.floor(percent); if( that.lastPercent != percent){ that.lastPercent = percent; stage.addChild( that.turkeyState[wholeNum] );