add client side physics

by god did this take a lot of debugging to get working
This commit is contained in:
Asraelite 2016-03-24 00:13:10 +00:00
parent 65f78ec3ac
commit 1412cabbb4
19 changed files with 697 additions and 71 deletions

View file

@ -41,9 +41,14 @@ class Connection {
}
disconnect() {
this.socket.disconnect();
this.player.disconnect();
}
drop() {
this.disconnect();
}
send(msg, data) {
this.io.to(this.socket.id).emit(msg, data);
}