Permalink
Browse files

added load level on server

  • Loading branch information...
1 parent c8d0a48 commit e43fbc5223369b008ae8e37c363b1311c3681eca Jeena Paradies committed Jul 13, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/Chuck/Processors/ServerProcessor.js
  2. +1 −0 lib/Server/Channel.js
@@ -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;
View
@@ -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){

0 comments on commit e43fbc5

Please sign in to comment.