Skip to main content
Pre-release

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 Stage and Substage separately,
  • re-use Substages over several Stages,
  • 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 Flow with two stages (named splashes and quit),
  • immediately enters the splashes stage, which creates a Task,
  • starts Panda3D's main loop,
  • lets the Task play the splash until it ends, or escape is 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

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)

Table of built distributions (wheels) for panda3d-stageflow 0.1b4
File Interpreter ABI Platform
panda3d_stageflow-0.1b4-py2.py3-none-any.whl Python 3, Python 2 none any Details

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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page