diff --git a/src/engine/loader.js b/src/engine/loader.js index 8ef055c6..2cb4496d 100644 --- a/src/engine/loader.js +++ b/src/engine/loader.js @@ -45,10 +45,14 @@ game.Loader = game.Class.extend({ @property {Array} assets **/ sounds: [], + /** + Is loader started. + @property {Boolean} started + **/ started: false, init: function(scene) { - this.scene = scene || SceneGame; + this.scene = scene || window[game.System.startScene] || game[game.System.startScene]; this.stage = game.system.stage; for (var i = 0; i < game.resources.length; i++) { diff --git a/src/engine/system.js b/src/engine/system.js index c589f197..dd5bd593 100644 --- a/src/engine/system.js +++ b/src/engine/system.js @@ -647,4 +647,11 @@ game.System.antialias = false; **/ game.System.resizeToFill = false; +/** + Default start scene. + @attribute {String} startScene + @default SceneGame +**/ +game.System.startScene = 'SceneGame'; + });