server anti-cheat

This commit is contained in:
Killian Marty 2023-12-26 18:09:04 +01:00
parent a9a1a965f4
commit 14f0226a2f

View file

@ -22,8 +22,9 @@ const wss = new WebSocket.Server({
const spawnPoints = [{"x":218,"y":193},{"x":601,"y":715},{"x":1264,"y":57},{"x":274,"y":506},{"x":921,"y":854},{"x":1041,"y":442},{"x":638,"y":124},{"x":483,"y":436}]
const connections = new Set();
var playerCount = 0;
var players = []
let playerCount = 0;
let players = []
const MAX_HEALTH = 10;
const NAME_MAXLEN = 25;