✨ Quick start for PyGame development with a clean modular structure
game_template/ │ ├── 🚀 main.py # Main executable file ├── 📁 src/ # Source code │ ├── 📂 modules/ # Utility modules (helpers, tools) │ ├── 🎭 scenes/ # Game scenes/screens (menus, levels) │ ├── 👾 sprites/ # Custom sprites and game objects │ ├── ⚙️ app.py # Application core (settings, main loop) │ ├── 🔊 audio.py # Sound and music manager │ ├── 🖼️ scene.py # Base Scene class │ ├── � sprite.py # Base Sprite class ├── 📝 logs/ # Game logs (if enabled) ├── 🗃️ assets/ # Resources │ ├── 🖼️ images/ # Textures, sprites, backgrounds │ ├── 🎵 sounds/ # SFX and music │ └── 🔠 fonts/ # Fonts └── 📜 README.md # Documentation Clone the repository:
git clone <your-repo>cd game_template
Install dependencies (PyGame + ColorLog):
pip install pygame colorlog
Run the game:
python main.py
🔗 Fate Bound - Soul Knight-style roguelike game.
🔗 Traffic Lights City - Traffic light simulation service tester.
Add a new scene:
- Create a file in
src/scenes/(e.g.,level1.py). - Inherit from the
Scenebase class.
- Create a file in
Create a sprite:
- Add a class in
src/sprites/(e.g.,enemy.py). - Use the base
Spriteclass for automatic image handling.
- Add a class in
Manage assets:
- Place images in
assets/images/, sounds inassets/sounds/.
- Place images in
This template is MIT Licensed, inspired by original project by [ArtBIT].