mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
Wait for backgrounds to render before starting
This commit is contained in:
parent
96b8e9f3a2
commit
f523700dc4
@ -36,13 +36,15 @@ class Controller{
|
|||||||
syncWith.game.startDate = this.game.startDate
|
syncWith.game.startDate = this.game.startDate
|
||||||
this.syncWith = syncWith
|
this.syncWith = syncWith
|
||||||
}
|
}
|
||||||
this.startMainLoop()
|
requestAnimationFrame(() => {
|
||||||
if(!this.multiplayer){
|
this.startMainLoop()
|
||||||
debugObj.controller = this
|
if(!this.multiplayer){
|
||||||
if(debugObj.debug){
|
debugObj.controller = this
|
||||||
debugObj.debug.updateStatus()
|
if(debugObj.debug){
|
||||||
|
debugObj.debug.updateStatus()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
startMainLoop(){
|
startMainLoop(){
|
||||||
this.mainLoopStarted = false
|
this.mainLoopStarted = false
|
||||||
|
Loading…
Reference in New Issue
Block a user