Understand Pyrite64 Scene Structure
mainPyrite64 uses a scene-based structure to manage game logic and data. A scene acts as a self-contained container that defines a set of objects, their behaviors, and general game settings.
Key lifecycle behaviors:
- Loading a scene: All objects defined in the scene are spawned, and game logic is handled by their components.
- Unloading a scene: All objects are removed from the game, and the next scene is loaded.
- Isolation: Each scene starts from nothing and returns to nothing when finished, allowing for different game types (e.g., menus vs. levels) to coexist in the same project.