SceneManager.new
From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Available since: Gideros 2020.2
Class: SceneManager
Description
Creates a new SceneManager object.
SceneManager.new(scenes)
Parameters
scenes: (table) the list of scenes
Example
require "scenemanager"
require "easing"
scenemanager = SceneManager.new(
{
["menu"] = Menu,
["level1"] = Level1,
-- ...
}
)
stage:addChild(scenemanager)
-- from app start to menu
scenemanager:changeScene("menu")