Updated client -> server identification

This commit is contained in:
Arne van Iterson 2020-04-28 14:05:03 +02:00
parent 673a02f2fa
commit 7bc88469a1

View File

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