mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added layers
This commit is contained in:
parent
7c783d19e8
commit
d29c64385d
4 changed files with 142 additions and 108 deletions
|
|
@ -13,11 +13,6 @@ function (Parent, Settings, Nc, PIXI) {
|
|||
|
||||
Level.prototype = Object.create(Parent.prototype);
|
||||
|
||||
Level.prototype.setup = function(levelData) {
|
||||
this.levelData = levelData;
|
||||
this.addBackground();
|
||||
Parent.prototype.setup.call(this, levelData);
|
||||
};
|
||||
|
||||
Level.prototype.loadLevelDataFromPath = function (path, callback) {
|
||||
var self = this;
|
||||
|
|
@ -93,5 +88,15 @@ function (Parent, Settings, Nc, PIXI) {
|
|||
return paths;
|
||||
};
|
||||
|
||||
Level.prototype.createItems = function(options) {
|
||||
Nc.trigger(); // FIXME
|
||||
Parent.prototype.createItems.call(this, options);
|
||||
};
|
||||
|
||||
Level.prototype.createTiles = function(first_argument) {
|
||||
Nc.trigger(); // FIXME
|
||||
Parent.prototype.createItems.call(this, options);
|
||||
};
|
||||
|
||||
return Level;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue