mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added Server and Client Game
This commit is contained in:
parent
e959c8e7a2
commit
bffb16e77c
5 changed files with 57 additions and 10 deletions
21
lib/Chuck/ClientGame.js
Normal file
21
lib/Chuck/ClientGame.js
Normal 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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue