add basic updating to client on physics

This commit is contained in:
Asraelite 2016-03-21 23:45:27 +00:00
parent 95e0f6b710
commit 1027d980c1
15 changed files with 160 additions and 13 deletions

View file

@ -21,6 +21,7 @@ class GameNet {
cons.set(id, new Connection(this, socket));
socket.on('disconnect', _ => {
cons.get(id).disconnect();
cons.delete(id);
});
});