Browse Source

Update screens.js

Fix loading screen alphas having negative values and Loading jumping to the last frame.
pull/12/head
Zott820 10 years ago
parent
commit
150fc28435
  1. 2
      js/screens.js

2
js/screens.js

@ -24,7 +24,7 @@ function LoadingScreen( stage, gameState ){
gameState.pubsub.subscribe( "Load", function(percent){ gameState.pubsub.subscribe( "Load", function(percent){
textContent.text = (percent * 25).toFixed(2) + " %"; textContent.text = (percent * 25).toFixed(2) + " %";
var wholeNum = percent.toFixed(0); var wholeNum = Math.floor(percent);
if( that.lastPercent != percent){ if( that.lastPercent != percent){
that.lastPercent = percent; that.lastPercent = percent;
stage.addChild( that.turkeyState[wholeNum] ); stage.addChild( that.turkeyState[wholeNum] );

Loading…
Cancel
Save