Commit f523700d authored by LoveEevee's avatar LoveEevee

Wait for backgrounds to render before starting

parent 96b8e9f3
...@@ -36,6 +36,7 @@ class Controller{ ...@@ -36,6 +36,7 @@ class Controller{
syncWith.game.startDate = this.game.startDate syncWith.game.startDate = this.game.startDate
this.syncWith = syncWith this.syncWith = syncWith
} }
requestAnimationFrame(() => {
this.startMainLoop() this.startMainLoop()
if(!this.multiplayer){ if(!this.multiplayer){
debugObj.controller = this debugObj.controller = this
...@@ -43,6 +44,7 @@ class Controller{ ...@@ -43,6 +44,7 @@ class Controller{
debugObj.debug.updateStatus() debugObj.debug.updateStatus()
} }
} }
})
} }
startMainLoop(){ startMainLoop(){
this.mainLoopStarted = false this.mainLoopStarted = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment