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
|
@ -6,8 +6,8 @@ const hulls = require('./traits/hulls.json');
|
|||
const Body = require('./body.js');
|
||||
|
||||
class Ship extends Body {
|
||||
constructor(player, build) {
|
||||
super();
|
||||
constructor(world, player, build) {
|
||||
super(world);
|
||||
|
||||
this.build = build || defaults.spawnShip.build;
|
||||
this.player = player;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue