mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed server bugs
This commit is contained in:
parent
f85469b97e
commit
3afc2fa66e
5 changed files with 24 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue