fix ship respawning
This commit is contained in:
parent
8e0c4b02e4
commit
79dd88fd67
2 changed files with 12 additions and 3 deletions
|
@ -29,6 +29,14 @@ class Spawner {
|
|||
let ship = new Ship(this.world, pos, player);
|
||||
player.ship = ship;
|
||||
this.world.addShip(ship);
|
||||
|
||||
let data = {
|
||||
playerShipId: player.ship.id,
|
||||
inputInterface: player.inputInterface,
|
||||
bounds: this.world.bounds,
|
||||
};
|
||||
|
||||
player.sendWorld(data);
|
||||
}
|
||||
|
||||
spawnMissile(ship) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue