The loadingscene feature provides base classes for loading screens.
BaseLoadingScene and its children all work by listening to the asset
system and when all known assets are loaded, continuing on.
- class ppb.features.loadingscene.BaseLoadingScene(**kwargs)¶
Handles the basics of a loading screen.
Initialize the sprites in the scene, yielding the ones that should be tagged with
- next_scene: ppb.Scene¶
The scene to transition to when loading is complete. May be a type or an instance.
Updates the scene with the load progress (0->1).
- class ppb.features.loadingscene.ProgressBarLoadingScene(**kwargs)¶
Assumes that a simple left-to-right progress bar composed of individual sprites is used.
Users should still override
Looks for sprites tagged
progressand sets them to “loaded” or “unloaded” based on the progress.
The “progress bar” is assumed to be horizontal going from left to right.