summaryrefslogtreecommitdiff
path: root/net.txt
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-31 23:51:25 +0000
committerubq323 <ubq323@ubq323.website>2023-01-31 23:51:25 +0000
commit04664ee48de5fc8b06a584e20a4b75c41dafa558 (patch)
tree49192241d64897fb34f75a92dbab1e11d706fa22 /net.txt
parent82c4e04fa6b27a1e9cb5469d7847aef80e5a22bd (diff)
add sending of tile changes, between players. server remembers all changes made. also add better debug screen
Diffstat (limited to 'net.txt')
-rw-r--r--net.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/net.txt b/net.txt
index 36b94ee..e2ab47f 100644
--- a/net.txt
+++ b/net.txt
@@ -2,6 +2,9 @@ c2s:
ppos {x,y}
this player has moved to position x,y
+settile {q,r,tile}
+ set tile at H(q,r) to tile (currently boolean)
+
s2c:
playerinfopart:: {id,x,y,color:[r,g,b]}
@@ -20,4 +23,6 @@ move {id,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
+settile {q,r,tile}
+ tile at H(q,r) was set to tile (currently boolean)