Add more planets
This commit is contained in:
parent
504f5fcc0c
commit
6cad5551bb
13 changed files with 748 additions and 23 deletions
|
@ -223,10 +223,13 @@ export default class Ship extends Body {
|
|||
|
||||
this.applyDirectionalForce(0, thrustForce, turnForce);
|
||||
|
||||
if (Math.abs(this.rvel) > 0.1) {
|
||||
this.rvel *= 0.7;
|
||||
}
|
||||
|
||||
this.modules.forEach(m => {
|
||||
if (m.type !== 'thruster' || thrustForce == 0) return;
|
||||
m.power += forward;
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue