Add start of ship editing grid

This commit is contained in:
asraelite 2018-03-05 00:57:33 +00:00
parent b88c0eb358
commit 2fbabc785e
16 changed files with 249 additions and 18 deletions

View file

@ -35,14 +35,14 @@ export default class Ship extends Body {
if (closestDistance > consts.MAX_PARENT_CELESTIAL_DISTANCE)
return null;
return closest;
}
tick() {
this.tickMotion();
if (!state.editing) this.tickMotion();
if (!this.landed) this.tickGravity(world.celestials);
this.resolveCollisions();
if (!state.editing) this.resolveCollisions();
this.modules.forEach(m => {
if (m.type == 'thruster' && m.power !== 0) {