Basic pygame-ce template with prewritten boilerplate, useful classes, and build/upload scripts.
Intended for use in game jams.
- Highly configurable from
src/config.py
- Scene/Entity system (TODO)
- Data/Settings save/load (TODO)
- Utilities script: (TODO)
- Image, sound, and font loading
- Image and audio caching (TODO)
- Basic text rendering
- Premade build scripts for building to executable/play-in-browser bundle with PyInstaller/Pygbag
- Fast uploading to itch.io with butler
- Create a new repo from this template and clone to your computer
- Create a virtual environment (Build script assumes folder is called
.venv
) - Install required dependencies with
python -m pip install -r requirements.txt
- Change settings in
src/config.py
if needed
- TODO
- Navigate to your project's root folder
- Run
python -m bundle.to_exe
to build to an executable in/dist
- Run
python -m bundle.to_web
to build to a play-in-browser package in/build/web/build/web
- Instead of typing these commands, you can write batch/shell scripts or set up run configurations in IDEs such as PyCharm to make building more convenient
- Register or login to an itch.io account
- Create a new project
- Install butler and add its folder to PATH
- On the command line, login to butler with your itch account
- Run
python -m bundle.upload_to_itch
to upload built files to itch.io - Customise your page