diff --git a/single-html/loader-and-starter.js b/single-html/loader-and-starter.js index f7bb3f6..9203a48 100644 --- a/single-html/loader-and-starter.js +++ b/single-html/loader-and-starter.js @@ -1,5 +1,10 @@ window.startGame = function() { - window.boot() + var startInterval = setInterval(() => { + if (window.registerLoad) { + window.boot(); + clearInterval(startInterval); + } + }, 16) } window.pauseGame = function() {