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

@ -22,8 +22,8 @@ class Connection {
this.player.name = data.name.slice(0, 20) || 'Fish';
});
socket.on('move', data => {
this.player.move(data);
socket.on('inputs', data => {
this.player.updateInputs(data);
});
this.server.assignRoom(this.player);