mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added load level on server
This commit is contained in:
parent
c8d0a48489
commit
e43fbc5223
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue