add basic missiles
This commit is contained in:
parent
21a30ad212
commit
ac089f3e8e
19 changed files with 215 additions and 85 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue