ground work for different users on server and players on client

This commit is contained in:
Jeena Paradies 2012-07-13 21:10:08 +02:00
parent e37d1eeb2e
commit 2cb401bbd3
9 changed files with 122 additions and 54 deletions

View file

@ -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();