Sprite Compiler Installation¶
This guide walks you through installing the PixelRoot32 Sprite Compiler on your system.
Prerequisites¶
Required Software¶
- Python: Version 3.8 or higher
- pip: Usually included with Python
Verify Prerequisites¶
Check if Python is installed:
Check if pip is installed:
If not installed, download from python.org
Installation Methods¶
Method 1: From Source (Recommended)¶
Step 1: Clone Repository¶
git clone https://github.com/Gperez88/PixelRoot32-Sprite-Compiler.git
cd PixelRoot32-Sprite-Compiler
Step 2: Install Dependencies¶
Step 3: Verify Installation¶
Method 2: Standalone Executable (Windows)¶
If you are on Windows, you can download the latest standalone .exe from the Releases section of the repository. This does not require Python or any dependencies to be installed.
Platform-Specific Instructions¶
Windows¶
Using npm (Recommended)¶
- Install Node.js from nodejs.org
- Download the Windows installer
- Run the installer
-
Restart your terminal/command prompt
-
Open Command Prompt or PowerShell
-
Install globally:
-
Verify:
Troubleshooting Windows Issues¶
"pr32-sprite-compiler is not recognized": - Ensure Node.js is in your PATH - Restart terminal after installation - Try using full path: C:\Users\YourName\AppData\Roaming\npm\pr32-sprite-compiler.cmd
Permission errors: - Run terminal as Administrator - Or install locally: npm install pr32-sprite-compiler (without -g)
Linux¶
Using npm¶
- Install Node.js (if not already installed):
Ubuntu/Debian:
Fedora/RHEL:
-
Install Sprite Compiler:
-
Verify:
Troubleshooting Linux Issues¶
Permission denied: - Use sudo for global installation - Or install locally without -g flag
Command not found: - Check npm global bin path: npm config get prefix - Add to PATH if needed: export PATH=$PATH:$(npm config get prefix)/bin
macOS¶
Using npm¶
- Install Node.js:
- Download from nodejs.org
-
Or use Homebrew:
brew install node -
Install Sprite Compiler:
-
Verify:
Using Homebrew (Alternative)¶
If available as a Homebrew formula:
GUI Version Installation¶
If a GUI version is available:
Windows¶
Download the installer from the releases page and run it.
Linux¶
# Download AppImage or .deb package
# Make executable and run
chmod +x pr32-sprite-compiler-gui.AppImage
./pr32-sprite-compiler-gui.AppImage
macOS¶
Download the .dmg file from releases and install.
Verification¶
After installation, verify everything works:
Test Basic Functionality¶
- Create a test image:
- Create an 8x8 pixel PNG image (black and white)
-
Save as
test.png -
Run compiler:
-
Check output:
- File
test_output.hshould be created - Should contain sprite data arrays
Check Version¶
Check Help¶
Updating¶
Update via npm¶
Update from Source¶
Uninstallation¶
Remove Global Installation¶
Remove Local Installation¶
Troubleshooting¶
Common Issues¶
"Command not found" after installation: - Restart your terminal - Check npm global bin path: npm config get prefix - Verify PATH includes npm bin directory
Permission errors: - On Linux/macOS: Use sudo for global install - Or install locally without -g flag - On Windows: Run terminal as Administrator
Module not found errors: - Reinstall: npm install -g pr32-sprite-compiler - Clear npm cache: npm cache clean --force
Version conflicts: - Check Node.js version: node --version - Update Node.js if version is too old - Use nvm (Node Version Manager) to manage versions
Getting Help¶
- Check the Usage Guide for usage examples
- Review Troubleshooting for common issues
- Open an issue on GitHub if problems persist
Next Steps¶
Once installed, proceed to: - Usage Guide - Learn how to use the compiler - Advanced Features - Explore advanced options
See Also¶
- Overview - What the Sprite Compiler does
- Available Tools - All PixelRoot32 tools