P2: Multiplayer improvements

This commit is contained in:
LoveEevee
2018-11-13 07:36:15 +03:00
parent 1619622257
commit 25d705ffcf
10 changed files with 139 additions and 36 deletions

View File

@@ -32,13 +32,13 @@ class Controller{
run(syncWith){
this.game.run()
this.view.run()
this.startMainLoop()
if(syncWith){
syncWith.run()
syncWith.game.elapsedTime = this.game.elapsedTime
syncWith.game.startDate = this.game.startDate
this.syncWith = syncWith
}
this.startMainLoop()
if(!this.multiplayer){
debugObj.controller = this
if(debugObj.debug){