add basic updating to client on physics
This commit is contained in:
parent
95e0f6b710
commit
1027d980c1
15 changed files with 160 additions and 13 deletions
|
@ -13,5 +13,9 @@ function Net() {
|
|||
game.connected = false;
|
||||
game.state = 'disconnected';
|
||||
});
|
||||
|
||||
this.socket.on('update', function(data) {
|
||||
game.world.update(data);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue