add setname client command

This commit is contained in:
Asraelite 2016-03-28 15:10:20 +01:00
parent 52e1673e3e
commit 1af386d9f5
10 changed files with 50 additions and 11 deletions

View file

@ -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);