Sprite unpack
Description
Utility script for cutting sprite sheets into sprite images. See examples section.
Installation
pip install sprite-unpack
Requirements
Python >= 3.9
Usage
sprite-unpack -i examples/doctor-doom-sheet.png -o ./examples/result
Example
I am fan of writing tiny games. Usually I use free sprite sheets for them. This script cuts sprite sheets into separate images ready for use in Godot, Unity, etc.
The result of cutting doctor-doom-sheet.png into images can be found in examples/result folder.
The algorithm is pretty straigtforward and can be easily understood from the following recording:
.
Caution! The script does not handle disjoint sprites with many particles.
Release files for sprite-unpack 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sprite-unpack-0.1.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sprite_unpack-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / sprite-unpack-0.1.1.tar.gz
| Download URL | sprite-unpack-0.1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca185f8abbeae300cb13ceab9fe96ddb4c1e5d1cf4e3d03a77c0de53055a9ce6
|
|
BLAKE2b-256 checksum How to use checksums |
4c0fe9008dcf7ea12526aebcc2e13ab88e3df7ec3f4e496d99f2af7eeee49026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0
|
Release files / sprite_unpack-0.1.1-py3-none-any.whl
| Download URL | sprite_unpack-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb021a3335203f1e4fb969575368032835bdb699bb4224c3bc40db0ec6081dc5
|
|
BLAKE2b-256 checksum How to use checksums |
60409e96988d008e575f0ec6c15bfcf948f475d7c2a6d0f6f484a925fcfb72d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0
|