diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-31 00:39:41 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-31 00:39:41 +0000 |
commit | 82c4e04fa6b27a1e9cb5469d7847aef80e5a22bd (patch) | |
tree | d848324e19717f8f5474daf941eb7685a25981fa | |
parent | 91a22ac34a3e6dc8536298537796e101424a430c (diff) |
net.txt network packet list
-rw-r--r-- | net.txt | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 + + |