input desynchro, rollback to instant handle.

This commit is contained in:
LuckyLaszlo
2022-11-30 04:00:55 +01:00
parent 01023d67b5
commit 68e529fec2
14 changed files with 123 additions and 66 deletions

View File

@@ -10,7 +10,7 @@ class Client {
isAlive: boolean = true;
gameSession: GameSession;
inputBuffer: ev.EventInput;
inputBuffer: ev.EventInput = new ev.EventInput();
lastInputId: number = 0;
constructor(socket: WebSocket, id: string) {