Project structure overview
mainThe template provides a pre-organized directory structure to help manage a 2D game. While you can move files as needed, the following paths are provided by default:
| Path | Description |
|---|---|
src/main.rs | App setup |
src/asset_tracking.rs | High-level way to load collections of asset handles as resources |
src/audio.rs | Marker components for sound effects and music |
src/dev_tools.rs | Dev tools for dev builds (toggle with ` aka backtick) |
src/demo/ | Example game mechanics & content (replace with your own code) |
src/menus/ | Main menu, pause menu, settings menu, etc. |
src/screens/ | Splash screen, title screen, loading screen, etc. |
src/theme/ | Reusable UI widgets & theming |