From 82c4e04fa6b27a1e9cb5469d7847aef80e5a22bd Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 31 Jan 2023 00:39:41 +0000 Subject: net.txt network packet list --- net.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net.txt diff --git a/net.txt b/net.txt new file mode 100644 index 0000000..36b94ee --- /dev/null +++ b/net.txt @@ -0,0 +1,23 @@ +c2s: +ppos {x,y} + this player has moved to position x,y + +s2c: +playerinfopart:: {id,x,y,color:[r,g,b]} + +join {pl=playerinfopart} + a player has joined. also sent on connection for each existing player + +you {pl=playerinfopart} + sent on connection to tell client about its own player + +leave {id} + player with id id has left + +move {id,x,y} + player with id id has moved to (x,y) + +chunk {tiles=[array of 128*128 booleans]} + chunk has data d. one day changes will exist and also multiple chunks will exist and also more than 2 tile types will exist + + -- cgit v1.2.3