Sprite Compiler Installation
This guide covers all installation paths for the PixelRoot32 Sprite Compiler.
Method 1: Install the Tool Suite (recommended)
The Sprite Compiler is integrated as a native GUI module inside the PixelRoot32 Tool Suite.
- Download the Tool Suite from pixelroot32.com
- Install the platform package (Windows installer, Linux AppImage, macOS bundle)
- Launch the Tool Suite and click "Sprite Compiler" on the launcher
The module discovers the pr32-sprite-compiler CLI automatically:
- Looked for alongside the Tool Suite executable (bundled in the installer).
- Alternatively, available on your system
PATH.
If the CLI is missing, the module prints an error to the console and exports will fail. Re-run the Tool Suite installer or add pr32-sprite-compiler (releases) to your PATH.
Method 2: Standalone CLI (Python source)
For CI scripts, build automation, or development environments without the Tool Suite.
Run the tool from a clone of the repository; the CLI entry point is python main.py.
Prerequisites
- Python: Version 3.8 or higher
- pip: Usually included with Python
python --version # Should show 3.8.0 or higher
pip --versionStep 1: Clone repository
git clone https://github.com/PixelRoot32-Game-Engine/PixelRoot32-Sprite-Sheet-Compiler.git
cd PixelRoot32-Sprite-Sheet-CompilerStep 2: Install dependencies
pip install -e .The project uses pyproject.toml (single dependency: Pillow). There is no requirements.txt.
Step 3: Verify installation
python main.py --helpWork from this directory (or call python with the full path to main.py) when building sprites.
Method 3: Pre-built native binary
The Releases page may ship standalone builds so you do not need to install Python. Exact file names change per release; pick the asset for your OS.
Windows
- Typically a
.exeinstaller or portable executable — follow the release notes.
Linux
- Often an AppImage (chmod +x, then run), or a
.deb/ distro package.
macOS
- Often a
.dmgor.app. If Gatekeeper blocks the app, allow it under System Settings → Privacy & Security.
Note: If there is no binary for your platform yet, use Method 2 (Python source).
Verification (Standalone CLI)
- Create a small PNG (e.g. 8×8 or 16×16).
- Run (adjust
--grid/--spriteto match):
python main.py test.png --grid 8x8 --sprite 0,0,1,1 --out test_output.h- Confirm
test_output.hexists and contains data arrays.
python main.py --helpUpdating (source install)
cd PixelRoot32-Sprite-Sheet-Compiler
git pull
pip install -e .Uninstallation
- Tool Suite: uninstall the Tool Suite application (platform-specific).
- Source: delete the clone (and any venv you used).
- Pre-built: remove the downloaded installer / AppImage / app bundle.
Troubleshooting
python not found
- On Windows, try
pyinstead ofpython. - Ensure Python is on
PATH; restart the terminal.
Import errors after install
- Use
pip install -e .with the same interpreter you use to runmain.py.
Cannot write output file
- Ensure the output directory exists and is writable.
Tool Suite: pr32-sprite-compiler not found
- The CLI binary must be alongside the Tool Suite executable or on
PATH. Download from the releases page.
Getting help
- Usage guide
- Open an issue on the Sprite Compiler repository if something fails.
