fixed server bugs

This commit is contained in:
logsol 2012-07-22 15:01:50 +02:00
parent f85469b97e
commit 3afc2fa66e
5 changed files with 24 additions and 27 deletions

View file

@ -1,9 +1,10 @@
define([
"Game/Core/Physics/Engine",
"Game/Core/Loader/Level"
"Game/Core/Loader/Level",
"Game/Core/Player"
],
function(Engine, Level) {
function(Engine, Level, Player) {
function GameController(physicsEngine) {
console.log('constructor called');
@ -36,7 +37,7 @@ function(Engine, Level) {
}
GameController.prototype.userJoined = function(user) {
var player = new Player(id, this.physicsEngine);
var player = new Player(user.id, this.physicsEngine);
this.players[user.id] = player;
return player;
}