aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-18 12:02:34 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:21:22 +0200
commitb8b7b5532a9826b7ebd28ae759aa3ff719a43449 (patch)
tree87fe4dcdeb6f50461562f028fd429f7668f99dde /test-client/protocol.ts
parent753a853faefe1d9518c895c22f1a2895183949e1 (diff)
downloadhurrycurry-b8b7b5532a9826b7ebd28ae759aa3ff719a43449.tar
hurrycurry-b8b7b5532a9826b7ebd28ae759aa3ff719a43449.tar.bz2
hurrycurry-b8b7b5532a9826b7ebd28ae759aa3ff719a43449.tar.zst
put stuff without recipe
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index d5605e37..2dd18b4d 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -11,7 +11,7 @@ export interface Gamedata {
export type PacketS =
{ join: { name: string } } // You join, sent as first packet.
- | { position: { pos: Vec2, rot: number } } // Update your position
+ | { position: { pos: Vec2, rot: number } } // Update your position and rotation in radians (0 is -y)
| { interact: { pos: Vec2, edge: boolean } } // Interact with some tile. edge is true when pressing and false when releasing interact button
| { collide: { player: PlayerID, force: Vec2 } } // Apply force to another player as a result of a collision