server reconciliation OK (a little rubberbanding)

This commit is contained in:
LuckyLaszlo
2022-11-23 10:43:12 +01:00
parent 2b9058ad49
commit 7d5895a6cc
10 changed files with 110 additions and 33 deletions

View File

@@ -6,12 +6,12 @@ import { GameSession } from "./GameSession.js";
class Client {
socket: WebSocket;
id: string; // Pas indispensable si "socket" a une copie de "id"
isAlive: boolean;
lastInputId: number = 0;
isAlive: boolean = true;
gameSession: GameSession;
constructor(socket: WebSocket, id: string) {
this.socket = socket;
this.id = id;
this.isAlive = true;
}
}