Hinzufügen der Game Logik: Hinzufügen von Spieler-Management, Socket.IO-Integration und UI-Updates

This commit is contained in:
2025-04-01 16:16:26 +02:00
parent 5a2eaf74ca
commit 2c9a14db9a
10 changed files with 64 additions and 9 deletions
@@ -24,6 +24,11 @@ class ClientHandler {
joinGame(){
const response = this.gameManager.joinGame(this.user);
if(response === 1) return this.socket.disconnect();
this.currentGameCode = response;
this.socket.join(`game-${this.currentGameCode}`);
}
defaultDisconnect(){