From 2a31d26fca33789ccf8ea28cdb214d20dd29f85d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 18 Jul 2024 12:39:33 +0200 Subject: serve-authorative movement --- test-client/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index f8241854..2a0f2b87 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -38,7 +38,7 @@ export interface Gamedata { export type PacketS = { type: "join", name: string, character: number } // Spawns your character. Dont send it to spectate. | { type: "leave" } // Despawns your character - | { type: "position", pos: Vec2, rot: number, boosting: boolean } // Update your position and rotation in radians (0 is -y) + | { type: "movement", pos: Vec2, direction: Vec2, boosting: boolean } | { type: "interact", pos?: Vec2 } // Interact with some tile. pos is a position when pressing and null when releasing interact button | { type: "communicate", message?: Message, persist: boolean } // Send a message | { type: "collide", player: PlayerID, force: Vec2 } // Apply force to another player as a result of a collision -- cgit v1.2.3-70-g09d2