⚠️ Note: This project uses a custom implementation of Raylib in Python. Theraylibpackage in this project is a wrapper around the C-based Raylib library.
-
Install Poetry (if you don't have it yet):
pip install poetry
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows
-
Install dependencies:
poetry install
-
Run your game:
poetry run python main.py
To package your game into a single executable file (for distribution):
-
Install PyInstaller (via Poetry):
poetry install --dev
-
Build the executable:
poetry run build
This will generate a dist folder with your game executable. The built executable supports:
- Windows (x64)
- macOS (x64)
- Linux (x64)
💡 Tip: The
buildcommand uses PyInstaller v6.16.0+ for optimal performance.
- The
raylibpackage in this project is a custom wrapper for the C-based Raylib library. - This implementation is designed for 2D games only.