Game.push
Push new scane to the game.
Syntax
push(scene)
Example
var game = new Game(); // main game game.onStart = function(sender) { var tile = Bitmap.fromFile("app://tile.png"); var menu = new Scene(); var bg = new TiledLayer({ columns : 10, rows : 12, image : tile, tileHeight : tile.height, tileWidth : tile.width, }); menu.add(bg); // push scene to the game this.push(menu); }
Parameters
scene : Scene | - Instance of scene class which should be added to the game.
Returns
Returns type: Undefined
Defined in
Game