add lasers
This commit is contained in:
parent
cf4e8024af
commit
f87aa1446d
31 changed files with 298 additions and 125 deletions
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const Fixture = require('./fixture.js');
|
||||
const Laser = require('./shot/laser.js');
|
||||
const Laser = require('./discharge/laser.js');
|
||||
|
||||
class Blaster extends Fixture {
|
||||
constructor(mount, data) {
|
||||
|
@ -9,10 +9,7 @@ class Blaster extends Fixture {
|
|||
}
|
||||
|
||||
fire() {
|
||||
let data = {
|
||||
speed: 1
|
||||
|
||||
};
|
||||
this.body.world.spawner.spawnLaser(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue