stageflow.panda3d module¶
-
class
stageflow.panda3d.Cutscene(exit_stage='main menu', splash_args=None)¶ Bases:
stageflow.core.StageThe Cutscene stage acts like a movie player, and can be used for splash screens and cinematics. It will play a Panda3D Interval until it has ended, or the player indicates that it should be ended by pressing
escape. It then transitions to the next stage, passing on the data that was passed toCutscene.enter.Subclasses of Cutscene need to implement:
- exit_stage
- The stage to exit to; By default
main menu. The data passed to that stage will be the same that was passed to the cutscene.
-
enter(data)¶
-
exit(data)¶
-
setup_credits(data)¶ Override this to set up the cutscene.
- data
- The data that was passed to
Stage.enter
Returns: The Panda3D Interval that will be played.
-
destroy_credits()¶ Tear down the cutscene again. The Interval will be dealt with automatically.
-
class
stageflow.panda3d.Panda3DSplash(*args, splash_args=None, **kwargs)¶ Bases:
stageflow.panda3d.CutsceneA generic splash screen advertising Panda3D.
-
setup_credits(data)¶
-
destroy_credits()¶
-