aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rwxr-xr-xserver.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 47896e8..73add35 100755
--- a/server.js
+++ b/server.js
@@ -135,7 +135,7 @@ io.on("connection", (conn) => {
if (!gameobj) return;
for (const p of gameobj.pl) {
if (p != conn) {
- p.emit("ballvec", x, y, vx, vy);
+ p.emit("ballvec", 1 - x, y, -vx, vy);
}
}
});