Adding an event queue in the GameScene.

Events are processed only in the 'update' method.
We hope this will solve a number of null pointer errors. See #194
This commit is contained in:
David Négrier 2020-06-19 18:18:43 +02:00
parent 8467712737
commit 2b820c7d56
3 changed files with 131 additions and 10 deletions

View file

@ -22,6 +22,7 @@
"@types/simple-peer": "^9.6.0",
"@types/socket.io-client": "^1.4.32",
"phaser": "^3.22.0",
"queue-typescript": "^1.0.1",
"simple-peer": "^9.6.2",
"socket.io-client": "^2.3.0"
},