add basic ship movement and tracking

This commit is contained in:
Asraelite 2016-03-22 11:56:53 +00:00
parent fcfe1e8790
commit 05ad81ed8d
10 changed files with 65 additions and 27 deletions

View file

@ -51,7 +51,7 @@ class World {
tick(self) {
self.physics.step();
if (Math.random() < 0.01) {
if (Math.random() < 0.1) {
self.bodies.forEach(body => body.applyDelta());
}
}