reorder and rename hardpoints and particles

This commit is contained in:
asraelite 2016-10-18 17:35:14 +01:00
parent d302bd4149
commit ea533015ba
16 changed files with 65 additions and 64 deletions

View file

@ -3,7 +3,7 @@
const Asteroid = require('./body/asteroid.js');
const Grapple = require('./body/projectile/grapple.js');
const Missile = require('./body/projectile/missile.js');
const Laser = require('./body/turret/discharge/laser.js');
const Laser = require('./particle/laser.js');
const Ship = require('./body/ship.js');
class Spawner {
@ -93,7 +93,7 @@ class Spawner {
yvel: fixture.body.vel.y + vy
};
let laser = new Laser(fixture, pos);
this.world.addDischarge(laser);
this.world.addParticle(laser);
return laser;
}
}