mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
replaced NotificationCenter with Nc
This commit is contained in:
parent
da913c4709
commit
672a46efa8
35 changed files with 160 additions and 161 deletions
|
|
@ -9,7 +9,7 @@ define([
|
|||
"Game/" + GLOBALS.context + "/GameObjects/Items/Skateboard",
|
||||
"Game/" + GLOBALS.context + "/GameObjects/Items/RagDoll"
|
||||
|
||||
], function (Settings, Box2D, NotificationCenter, Exception, CollisionDetector, Tile, Item, Skateboard, RagDoll) {
|
||||
], function (Settings, Box2D, Nc, Exception, CollisionDetector, Tile, Item, Skateboard, RagDoll) {
|
||||
|
||||
function Level (uid, engine, gameObjects) {
|
||||
this.uid = uid;
|
||||
|
|
@ -28,7 +28,7 @@ define([
|
|||
self.createTiles();
|
||||
self.createItems();
|
||||
self.isLoaded = true;
|
||||
NotificationCenter.trigger("game/level/loaded");
|
||||
Nc.trigger("game/level/loaded");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ define([
|
|||
var options = items[i];
|
||||
var uid = "item-" + i;
|
||||
var item = this.createItem(uid, options);
|
||||
this.gameObjects.animated.push(item); // FIXME: use NotificationCenter
|
||||
this.gameObjects.animated.push(item); // FIXME: use Nc
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue