mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
preliminary spawning of other players
This commit is contained in:
parent
c4c48ab821
commit
a10a7a7319
3 changed files with 30 additions and 20 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue