Skip to main content

Tool for cutting spritesheets into seperate images for importing into Godot, Unity, etc.

Project description

Sprite unpack

CI

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:

Algo.

Caution! The script does not handle disjoint sprites with many particles.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sprite-unpack-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

sprite_unpack-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file sprite-unpack-0.1.1.tar.gz.

File metadata

  • Download URL: sprite-unpack-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for sprite-unpack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca185f8abbeae300cb13ceab9fe96ddb4c1e5d1cf4e3d03a77c0de53055a9ce6
MD5 2c86ee5ee52e8528456a4a5764ee5491
BLAKE2b-256 4c0fe9008dcf7ea12526aebcc2e13ab88e3df7ec3f4e496d99f2af7eeee49026

See more details on using hashes here.

File details

Details for the file sprite_unpack-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sprite_unpack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for sprite_unpack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb021a3335203f1e4fb969575368032835bdb699bb4224c3bc40db0ec6081dc5
MD5 a0b672cc43e870c721d986bec141df95
BLAKE2b-256 60409e96988d008e575f0ec6c15bfcf948f475d7c2a6d0f6f484a925fcfb72d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page