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,7 +1,8 @@
|
|||
define(["Chuck/Physics/Doll", "Chuck/Settings"], function(Doll, Settings){
|
||||
|
||||
function Player (physicsEngine, repository) {
|
||||
function Player (physicsEngine, id, repository) {
|
||||
this._physicsEngine = physicsEngine;
|
||||
this.id = id;
|
||||
this._repository = repository;
|
||||
this._standing = false;
|
||||
this._doll;
|
||||
|
|
@ -10,11 +11,11 @@ define(["Chuck/Physics/Doll", "Chuck/Settings"], function(Doll, Settings){
|
|||
this._lookDirection = 1;
|
||||
this._moveDirection = 0;
|
||||
|
||||
this.init();
|
||||
this.init(id);
|
||||
}
|
||||
|
||||
Player.prototype.init = function() {
|
||||
this._doll = new Doll(this._physicsEngine);
|
||||
Player.prototype.init = function(id) {
|
||||
this._doll = new Doll(this._physicsEngine, id);
|
||||
//this._mc = EmbedHandler.load(EmbedHandler.CHUCK);
|
||||
//this._mc.stop();
|
||||
//var mclp = new MovieClipLabelParser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue