added collision detection

This commit is contained in:
logsol 2012-07-11 02:45:54 +02:00
parent ff6456fd47
commit a6058ce3d3
3 changed files with 55 additions and 16 deletions

View file

@ -28,7 +28,7 @@ define(requires, function(PhysicsEngine, Player, InputControlUnit, Settings, Box
Processor.prototype.init = function() {
this._physicsEngine = new PhysicsEngine();
this._makeBox();
//this._makeBox();
if(Settings.IS_BROWSER_ENVIRONMENT) {
@ -39,9 +39,11 @@ define(requires, function(PhysicsEngine, Player, InputControlUnit, Settings, Box
//this._camera = Camera.getInstance()
//this._camera.follow(this._me);
//this._repository = Repository.getInstance();
//this._physicsEngine.setCollisionDetector(this._me);
this._physicsEngine.setCollisionDetector(this._me);
}
//new Chuck.Loader.Level(this._physicsEngine);u
//new Items();