Skip to content

Instantly share code, notes, and snippets.

@demonixis
Created October 25, 2012 13:19
Show Gist options
  • Save demonixis/3952495 to your computer and use it in GitHub Desktop.
Save demonixis/3952495 to your computer and use it in GitHub Desktop.
test synchro JS
// 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