add non-functioning explosions
I'm tired and box2d ray casting is stupid so this'll have to do for today
This commit is contained in:
parent
ac089f3e8e
commit
bf8226481d
7 changed files with 68 additions and 5 deletions
|
@ -24,7 +24,9 @@ class Spawner {
|
|||
let pos = {
|
||||
x: ship.center.x + ox,
|
||||
y: ship.center.y + oy,
|
||||
r: r
|
||||
r: r,
|
||||
xvel: ship.vel.x,
|
||||
yvel: ship.vel.y
|
||||
};
|
||||
let missile = new Missile(this.world, pos, ship);
|
||||
this.world.addMissile(missile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue