From 04664ee48de5fc8b06a584e20a4b75c41dafa558 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 31 Jan 2023 23:51:25 +0000 Subject: add sending of tile changes, between players. server remembers all changes made. also add better debug screen --- net.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net.txt') 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) -- cgit v1.2.3