add basic ship movement and tracking
This commit is contained in:
parent
fcfe1e8790
commit
05ad81ed8d
10 changed files with 65 additions and 27 deletions
|
@ -17,6 +17,10 @@ function Net() {
|
|||
this.socket.on('update', function(data) {
|
||||
game.world.update(data);
|
||||
});
|
||||
|
||||
this.socket.on('world', function(data) {
|
||||
game.world.playerShipId = data;
|
||||
});
|
||||
};
|
||||
|
||||
this.update = function(move) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue