fix server

This commit is contained in:
Killian Marty 2023-12-06 09:17:24 +01:00
parent 9dd7da59f5
commit b2a7486fa6

View file

@ -63,8 +63,8 @@ function createNewPlayer(socket, name){
console.log(pos) console.log(pos)
var obj = { var obj = {
id: playerCount, id: playerCount,
x: x, x: pos[0],
y: y, y: pos[1],
dir: 0, dir: 0,
visibleDir: 0, visibleDir: 0,
name: name name: name