add ship destruction
This commit is contained in:
parent
44ddaacb15
commit
d9e8e217c6
5 changed files with 47 additions and 12 deletions
|
@ -49,6 +49,10 @@ class Ship extends Body {
|
|||
};
|
||||
}
|
||||
|
||||
destructType() {
|
||||
this.player.ship = false;
|
||||
}
|
||||
|
||||
updateInputs(packet) {
|
||||
this.aim.x = packet.aim[0];
|
||||
this.aim.y = packet.aim[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue