add setname client command
This commit is contained in:
parent
52e1673e3e
commit
1af386d9f5
10 changed files with 50 additions and 11 deletions
|
@ -20,6 +20,7 @@ class Game {
|
|||
this.pingMode = 'fast';
|
||||
|
||||
this.input = new Input();
|
||||
this.commandProcessor = new CommandProcessor();
|
||||
this.gui = new GUI();
|
||||
this.net = new Net();
|
||||
this.world = new World();
|
||||
|
@ -29,6 +30,10 @@ class Game {
|
|||
this.state = 'connecting';
|
||||
}
|
||||
|
||||
command(a, b) {
|
||||
this.commandProcessor.run(a, b);
|
||||
}
|
||||
|
||||
tick() {
|
||||
this.renderer.render(this.state);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue