add stupid explosion effect

This commit is contained in:
Asraelite 2016-03-25 17:42:03 +00:00
parent 8a8a9c8ae3
commit 6f85d63839
5 changed files with 128 additions and 8 deletions

View file

@ -28,6 +28,11 @@ class Missile extends Body {
detonate() {
this.world.explosion(this.center, 10);
this.world.room.broadcast('effect', {
type: 'explosion',
size: 10,
pos: this.center
});
this.world.removeBody(this);
}