From 7bc88469a1d15b9c5d393fc9a63e8b8ce5aa5230 Mon Sep 17 00:00:00 2001 From: Arne van Iterson Date: Tue, 28 Apr 2020 14:05:03 +0200 Subject: [PATCH] Updated client -> server identification --- src/screens/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens/game.js b/src/screens/game.js index a359307..c37322e 100644 --- a/src/screens/game.js +++ b/src/screens/game.js @@ -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}`);