mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
NC refactoring
This commit is contained in:
parent
28f71f49e1
commit
96bf9bffbd
24 changed files with 69 additions and 69 deletions
|
|
@ -16,10 +16,10 @@ function (PhysicsEngine, TiledLevel, Player, Nc) {
|
|||
this.physicsEngine = new PhysicsEngine();
|
||||
this.physicsEngine.setCollisionDetector();
|
||||
|
||||
Nc.on("game/level/loaded", this.onLevelLoaded, this);
|
||||
Nc.on(Nc.ns.core.game.events.level.loaded, this.onLevelLoaded, this);
|
||||
|
||||
Nc.on("game/object/add", this.onGameObjectAdd, this);
|
||||
Nc.on("game/object/remove", this.onGameObjectRemove, this);
|
||||
Nc.on(Nc.ns.core.game.gameObject.add, this.onGameObjectAdd, this);
|
||||
Nc.on(Nc.ns.core.game.gameObject.remove, this.onGameObjectRemove, this);
|
||||
|
||||
this.update();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue