scene - Scene management¶
-
class
scene.
SceneManager
¶ The SceneManager takes care of scene transitions, preserving scene states and everything else to maintain and ensure the control flow between different scenes.
-
scenes
¶ The scene stack.
-
push
(scene : Scene) → None¶ Pushes a new
Scene
to the scene stack.The
current
scene will be put on the scene stack for later execution, while the passed scene will be set as current one. Once the newly pushed scene has ended or was paused, the previous scene will continue its execution.
-
pop
() → None¶ Pops a scene from the scene stack, bringing it into place for being executed on the next update.
-
update
() → None¶ Updates the scene state and switches to the next scene, if any has been pushed into place.
-
-
class
scene.
Scene
([name=None])¶ A simple scene state object used to maintain the application workflow based on the presentation of an application.
-
manager
¶ The
SceneManager
, theScene
is currently executed on.Note
This will be set automatically on starting the
Scene
by theSceneManager
. If theScene
is ended, it will be reset.
-
state
¶ The current scene state.
-
is_running
¶ Indicates, if the scene is currently running.
-
is_paused
¶ Indicates, if the scene is currently paused.
-
has_ended
¶ Indicates, if the scene has ended.
-