fix explosion physics

This commit is contained in:
Asraelite 2016-03-25 16:41:15 +00:00
parent bf8226481d
commit 8a8a9c8ae3
7 changed files with 54 additions and 24 deletions

View file

@ -9,6 +9,8 @@ class Asteroid extends Body {
this.x = pos.x;
this.y = pos.y;
this.debug = 0;
this.size = size;
this.type = 'asteroid';
@ -23,8 +25,13 @@ class Asteroid extends Body {
return [build];
}
tickType() {
if (this.debug > 0)
this.debug--;
}
packTypeDelta() {
return [];
return [this.debug];
}
packFull() {