diff options
Diffstat (limited to 'protocol.md')
-rw-r--r-- | protocol.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocol.md b/protocol.md index 7f86df7b..093bce58 100644 --- a/protocol.md +++ b/protocol.md @@ -19,3 +19,10 @@ The protocol schema is defined in [`protocol.ts`](./test-client/protocol.ts) Collisions are handled by the clients. Whenever to players collide the player with the greater PlayerID is responsible for updating their own momentum and sending a packet to update that of the other player. + +## Movement + +Movement is handled mostly client-side. Therefore it is implement three times: +- In the test-client: [movement.ts](./test-client/movement.ts) +- For customers in the server: [movement.rs](./server/src/customer/movement.rs) +- In the client: [movement.rs](./client/scripts/player.gd) |