mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added collision detection
This commit is contained in:
parent
ff6456fd47
commit
a6058ce3d3
3 changed files with 55 additions and 16 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue