clean client code

This commit is contained in:
Asraelite 2016-03-24 13:26:35 +00:00
parent f3619ba891
commit 21a30ad212
18 changed files with 294 additions and 268 deletions

View file

@ -66,6 +66,7 @@ class Room {
sendWorld(player) {
let data = {
playerShipId: player.ship.id,
bounds: this.world.bounds,
bodies: Array.from(this.world.bodies).map(b => b.packFull())
};