From 1ab1fd8cc03678ac180673884eff098821bcecd2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 21 Jun 2024 12:39:50 +0200 Subject: refactor movement --- protocol.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'protocol.md') 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) -- cgit v1.2.3-70-g09d2