diff --git a/lib/Chuck/Processors/ServerProcessor.js b/lib/Chuck/Processors/ServerProcessor.js index 0c01b65..cf7aef7 100755 --- a/lib/Chuck/Processors/ServerProcessor.js +++ b/lib/Chuck/Processors/ServerProcessor.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; diff --git a/lib/Server/Channel.js b/lib/Server/Channel.js index 3860ff4..4e30298 100644 --- a/lib/Server/Channel.js +++ b/lib/Server/Channel.js @@ -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){