mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
layer bugfixing
This commit is contained in:
parent
d29c64385d
commit
1d3ad16a07
9 changed files with 56 additions and 9 deletions
|
|
@ -89,13 +89,21 @@ function (Parent, Settings, Nc, PIXI) {
|
|||
};
|
||||
|
||||
Level.prototype.createItems = function(options) {
|
||||
Nc.trigger(); // FIXME
|
||||
|
||||
var layerName = "items";
|
||||
Nc.trigger(Nc.ns.client.view.layer.createAndAdd, layerName);
|
||||
options.layer = layerName;
|
||||
|
||||
Parent.prototype.createItems.call(this, options);
|
||||
};
|
||||
|
||||
Level.prototype.createTiles = function(first_argument) {
|
||||
Nc.trigger(); // FIXME
|
||||
Parent.prototype.createItems.call(this, options);
|
||||
Level.prototype.createTiles = function(options) {
|
||||
|
||||
var layerName = "tiles";
|
||||
Nc.trigger(Nc.ns.client.view.layer.createAndAdd, layerName);
|
||||
options.layer = layerName;
|
||||
|
||||
Parent.prototype.createTiles.call(this, options);
|
||||
};
|
||||
|
||||
return Level;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue