Pygame State Machine Architect

Defines an abstract BaseState lifecycle (startup, cleanup, get_event, update, draw) plus a StateMachine manager running a fixed delta-time loop with dt = clock.tick(60) / 1000.0, providing concrete MenuState, GameplayState, and PauseState implementations and a SpriteSheetSlicer that parses TexturePacker XML or JSON atlases into pygame.Surface subsurface frames.

RMAzrim Updated

File contents

RMAzrim/opencode-artes/tree/main/docs/skills/pygame-state-machine-architect commit 4a6696c34f

Frequently asked questions

npx skillmds@latest add rmazrim/pygame-state-machine-architect