preliminary spawning of other players

This commit is contained in:
Logsol 2013-01-04 22:59:29 +01:00
parent c4c48ab821
commit a10a7a7319
3 changed files with 30 additions and 20 deletions

View file

@ -48,6 +48,16 @@ function (Parent, PhysicsEngine, ViewController, KeyboardController, Notificatio
this.keyboardController = new KeyboardController(this.me, this);
}
GameController.prototype.userJoined = function (user) {
var player = Parent.prototype.userJoined.call(this, user);
player.spawn(50, 50);
return player;
}
/*
GameController.prototype.userLeft = function (user) {
Parent.prototype.userLeft.call(user);
}
*/
GameController.prototype.processGameCommand = function (command, options) {
if (command == "worldUpdate") {