mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
gameCommand implementation
This commit is contained in:
parent
6219a82fbd
commit
c4c48ab821
10 changed files with 62 additions and 39 deletions
|
|
@ -41,8 +41,10 @@ function (Parent, PhysicsEngine, Settings, InputController, requestAnimFrame, No
|
|||
|
||||
var id = user.id;
|
||||
var player = this.players[id];
|
||||
user.setPlayer(player);
|
||||
player.spawn(50, 50);
|
||||
this.inputControllers[id] = new InputController(player);
|
||||
player.inputController = this.inputControllers[id]; // FIXME move this to Server/Player
|
||||
}
|
||||
|
||||
GameController.prototype.userLeft = function (user) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue