add client side physics
by god did this take a lot of debugging to get working
This commit is contained in:
parent
65f78ec3ac
commit
1412cabbb4
19 changed files with 697 additions and 71 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue