mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
ground work for different users on server and players on client
This commit is contained in:
parent
e37d1eeb2e
commit
2cb401bbd3
9 changed files with 122 additions and 54 deletions
|
|
@ -1,14 +1,19 @@
|
|||
define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
|
||||
|
||||
function ClientGame(networker){
|
||||
function ClientGame(networker, id) {
|
||||
this.networker = networker;
|
||||
this.processor = new ClientProcessor();
|
||||
this.processor.spawnMeWithId(id);
|
||||
}
|
||||
|
||||
ClientGame.prototype.loadLevel = function(path) {
|
||||
this.processor.loadLevel(path);
|
||||
}
|
||||
|
||||
ClientGame.prototype.userJoined = function(userId) {
|
||||
this.processor.spawnNewPlayerWithId(userId);
|
||||
};
|
||||
|
||||
ClientGame.prototype.processGameCommand = function(command, options){
|
||||
console.log('(not implemented) processGameCommand:', command, options);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue