What problem does it solve?
This Skill helps you avoid broken or confusing spx project code by providing a clear, reliable structure for stage and sprite implementation that matches spx engine expectations.
Core Features & Use Cases
- Project code organization: Ensures variable declarations, functions, and event handlers are ordered correctly so your spx code compiles and behaves as intended.
- Stage vs. Sprite architecture: Guides you to treat the stage (
Game in spx) as shared “world” logic and sprites as independent worker objects with proper field/method scoping.
- Interaction and API best practices: Promotes maintainable communication via broadcast/onMsg and encourages using higher-level movement and control APIs.
Quick Start
Tell the AI: "Review my spx project structure and rewrite my stage and sprite code so declarations come first, functions come before event handlers, and cross-sprite interactions use broadcast/onMsg correctly."