Bring your sprite sheets to life with this awesome animation tool!
Ever wondered how game developers turn a grid of images into smooth animations? That's what sprite sheets are all about! This tool lets you:
- 📁 Load any sprite sheet image (PNG, JPG, BMP)
- 📏 Set the dimensions of individual sprites in your sheet
- 🎯 Select specific frames for your animation
▶️ Preview animations with adjustable speed and zoom- 🎛️ Fine-tune your animations with interactive controls
Perfect for game developers, pixel artists, or anyone who wants to play with sprite animations!
# Clone this repository
git clone https://github.com/yourusername/cizzle-sprite-sheet-tester.git
cd cizzle-sprite-sheet-tester
# Create a virtual environment
python -m venv env
# Activate the virtual environment
# On Windows
env\Scripts\activate
# On macOS/Linux
# source env/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run the application
python -m src.main
-
Load a Sprite Sheet:
- Click "Load Sprite Sheet" and select your image file
- The tool works best with evenly-spaced sprites in a grid layout
-
Set Sprite Dimensions:
- Use the Width and Height sliders to specify the size of each individual sprite
- Click "Apply Dimensions" to see your sprite grid
-
Select Animation Frames:
- Click "Select Animation Frames" to open the frame selector
- Check the boxes for frames you want to include
- Use "Select All" or "Deselect All" for quick selection
- The preview shows which frames you've selected
- Click "Save Selection" when done
-
Run the Animation:
- Click "Run Animation" to see your sprites come to life!
- A new window will open with your animation playing
-
Animation Controls:
- Left/Right arrows: Navigate between frames
- Up/Down arrows: Zoom in/out
- +/- keys: Adjust animation speed
- ESC: Close the animation and return to the main window
- Animation Speed: Control how fast your animation plays (1-60 FPS)
- Zoom Level: Make your sprites bigger or smaller (1-10x)
- Frame Selection: Choose any combination of frames for your animation
cizzle-sprite-sheet-tester/
│
├── src/ # Source code
│ ├── __init__.py # Makes src a Python package
│ └── main.py # Entry point for the application
│
├── tests/ # Test files
│ └── __init__.py # Makes tests a Python package
│
├── .gitignore # Specifies files to ignore in version control
├── requirements.txt # Project dependencies
├── pyproject.toml # Project metadata and build configuration
└── README.md # This file
- Perfect Loop: Choose frames that make a smooth loop for continuous animations
- Multiple Animations: You can test different animations from the same sprite sheet by selecting different frame sequences
- Keyboard Shortcuts: While in the animation window, use keyboard controls for quick adjustments
- Visual Debugging: Use this tool to easily spot animation issues in your sprite sheets
- Python 3.6+
- Pygame
- Tkinter (usually comes with Python)
- Pillow (PIL)
Not sure where to start? Try these free sprite sheet resources:
Have ideas for improvements? Contributions are welcome! Feel free to fork this repository and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Cizzle