move to 8 bit communication
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user