Updated client -> server identification

This commit is contained in:
Arne van Iterson 2020-04-28 14:05:03 +02:00
parent 673a02f2fa
commit 7bc88469a1
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class GameScreen extends Container {
this.socket.on("identify", () => {
this.socket.emit("identification", {
name: "Arn",
gamemode: 2
playersMax: 2,
gameID: "tank"
});
console.log(`Connected to server as ${this.socket.id}`);