Browse Source

Merge pull request #12 from fernjager/Load_Fix1

Update screens.js
pull/16/head
Robert Chen 9 years ago
parent
commit
38b30e23d1
  1. 2
      js/screens.js

2
js/screens.js

@ -24,7 +24,7 @@ function LoadingScreen( stage, gameState ){ @@ -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] );

Loading…
Cancel
Save