Created
October 25, 2012 13:19
-
-
Save demonixis/3952495 to your computer and use it in GitHub Desktop.
test synchro JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tant que les modèles ne sont pas tous chargés on affiche rien | |
var waiting = setInterval(function(t) | |
{ | |
if (player1.loaded && player2.loaded && player3.loaded && player4.loaded) | |
{ | |
clearInterval(waiting); | |
setupGame("canvasContainer"); | |
contextPlayer = player1; | |
document.getElementById("canvasContainer").removeChild(document.getElementById("loadingPage")); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment