added Server and Client Game

This commit is contained in:
Jeena Paradies 2012-07-13 19:33:52 +02:00
parent e959c8e7a2
commit bffb16e77c
5 changed files with 57 additions and 10 deletions

21
lib/Chuck/ClientGame.js Normal file
View file

@ -0,0 +1,21 @@
define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
function ClientGame(networker){
this.networker = networker;
this.processor = new ClientProcessor();
}
ClientGame.prototype.loadLevel = function(path) {
this.processor.loadLevel(path);
}
ClientGame.prototype.processGameCommand = function(command, options){
console.log('(not implemented) processGameCommand:', command, options);
}
ClientGame.prototype.destruct = function(){
this.processor.destruct();
}
return ClientGame;
});