add basic ship movement and tracking
This commit is contained in:
parent
fcfe1e8790
commit
05ad81ed8d
10 changed files with 65 additions and 27 deletions
|
@ -25,6 +25,10 @@ class Player {
|
|||
});
|
||||
}
|
||||
|
||||
sendWorld() {
|
||||
this.connection.send('world', this.ship.id);
|
||||
}
|
||||
|
||||
sendUpdate() {
|
||||
if (Object.keys(this.delta).length == 0) return;
|
||||
this.connection.send('update', this.delta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue