add basic missiles

This commit is contained in:
Asraelite 2016-03-24 18:42:11 +00:00
parent 21a30ad212
commit ac089f3e8e
19 changed files with 215 additions and 85 deletions

View file

@ -18,12 +18,8 @@ class Player {
this.room.remove(this);
}
move(data) {
this.ship.move({
forward: data.forward || 0,
left: data.left || 0,
right: data.right || 0
});
updateInputs(data) {
this.ship.updateInputs(data);
this.lastAction = Date.now();
}