mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixes initial level positioning
This commit is contained in:
parent
aaa1db4468
commit
cad112419d
14 changed files with 91 additions and 61 deletions
|
|
@ -36,8 +36,8 @@ function (Nc, Exception, Layer) {
|
|||
* If no referenceId is given, the layer is inserted in the far background (behind=true)
|
||||
* or in the foreground (behind=false/null)
|
||||
*/
|
||||
LayerManager.prototype.createAndInsert = function(id, parallaxSpeed, behind, referenceId) {
|
||||
var layer = new Layer(id, parallaxSpeed);
|
||||
LayerManager.prototype.createAndInsert = function(id, options, behind, referenceId) {
|
||||
var layer = new Layer(id, options);
|
||||
this.insert(layer, behind, referenceId);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue