add start of ship controls
This commit is contained in:
parent
1027d980c1
commit
fcfe1e8790
10 changed files with 131 additions and 2 deletions
|
@ -22,6 +22,10 @@ class Connection {
|
|||
this.player.name = data.name.slice(0, 20) || 'Fish';
|
||||
});
|
||||
|
||||
socket.on('move', data => {
|
||||
this.player.move(data);
|
||||
});
|
||||
|
||||
this.server.assignRoom(this.player);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue