Skip to content

Commit

Permalink
added load level on server
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeena Paradies committed Jul 13, 2012
1 parent c8d0a48 commit e43fbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Chuck/Processors/ServerProcessor.js
Expand Up @@ -91,7 +91,7 @@ define(requires, function(PhysicsEngine, Player, Box2D, Level, InputController,
this.serverGame.updateClientsWorld(update);
}

setTimeout(this.updateWorld.bind(this), 500); // FIXME: do this a different hearbeat
setTimeout(this.updateWorld.bind(this), 15); // FIXME: do this a different hearbeat
}

return ServerProcessor;
Expand Down
1 change: 1 addition & 0 deletions lib/Server/Channel.js
Expand Up @@ -4,6 +4,7 @@ define(["Chuck/ServerGame"], function(ServerGame) {
this.name = name;
this.users = {};
this.serverGame = new ServerGame(this);
this.serverGame.loadLevel("default.json")
}

Channel.validateName = function(name){
Expand Down

0 comments on commit e43fbc5

Please sign in to comment.