This release is a pre-release and may not be stable for production use.
panda3d-stageflow
Just about every game beyond gameplay prototypes goes through distinct stages: Opening credits, main menu, main game loop, ingame credits, and so on. These can be arranged as a finite state machine, with data being passed between stages.
In addition, each stage, especially the main menu and main game loop, can have certain modes that modify their base functionality, mostly menus that pause the base game; These are called substages.
stageflow implements this basic framework, letting you...
- focus on each
StageandSubstageseparately, - re-use
Substagesover severalStages, - use premade typical
Stages/Substages.
For example: # FIXME: Abstract Panda3DSplash out of the example...
from direct.showbase.ShowBase import ShowBase
from stageflow import Flow
from stageflow.panda3d import Panda3DSplash
from stageflow.prefab import Quit
ShowBase()
base.flow = Flow(
stages=dict(
splash=Panda3DSplash(exit_stage='quit'),
quit=Quit(),
),
initial_stage='splash',
)
base.run()
This example...
- creates a
Flowwith two stages (namedsplashesandquit), - immediately enters the
splashesstage, which creates aTask, - starts Panda3D's main loop,
- lets the
Taskplay the splash until it ends, orescapeis pressed, - transitions to
quit, which in turn ends the program.
Installation, etc.
Installation: pip install panda3d-stageflow
Documentation: readthedocs.io
Source and issue tracker: GitHub
Metadata
Release files for panda3d-stageflow 0.1b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| panda3d_stageflow-0.1b4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for panda3d_stageflow-0.1b4-py2.py3-none-any.whl |
Release files / panda3d_stageflow-0.1b4-py2.py3-none-any.whl
| Download URL | panda3d_stageflow-0.1b4-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
850ae7c73c5a3bc4b4f3fae634306315eab6ba2864b0c633b2d282668ac5efe3
|
|
BLAKE2b-256 checksum How to use checksums |
2aeddc299a2bd9d6a0eccb7f795465c6aeefcd3149f95f6b570d3193261ca1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Security for panda3d-stageflow 0.1b4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.