add stupid explosion effect
This commit is contained in:
parent
8a8a9c8ae3
commit
6f85d63839
5 changed files with 128 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue