move to 8 bit communication

This commit is contained in:
2024-08-10 19:23:18 +02:00
parent 43b23ec1ad
commit 259d4b91d8
4 changed files with 7 additions and 7 deletions

View File

@@ -90,7 +90,7 @@
}
function send(x,y,angle){
factor = (2**16-1)/400
factor = (2**8-1)/400;
x = Math.round((x + 200) * factor);
y = Math.round((y + 200) * factor);
var data = clientId + ";d;" + x.toString() + "," + y.toString();