Skip to main content

Convert ZX Paintbrush files to GuSprites ZXBasic code

Project description

zxp2gus

Simple command to convert ZX Paintbrush Images (zxp) into basic file for Boriel's ZX Basic and GuSprites sprite library

Install

pip install zxp2gus

Run

usage: zxp2gus [-h] [-t ITYPE] [-i INPUT] [-o OUTPUT_FOLDER] [-f FORMAT]

Process some arguments.

options:
  -h, --help            show this help message and exit
  -t ITYPE, --itype ITYPE
                        Type of input
  -i INPUT, --input INPUT
                        Input file
  -o OUTPUT_FOLDER, --output OUTPUT
                        Output file
  -f FORMAT, --format FORMAT
                        Format of the output

You can convert zxp of type tiles or sprites to bin form import into ZX Basic program or PNG to use it in other programas like Tiled for example

Examples:

Bin

zxp2gus -t tiles -i assets/map/tiles.zxp -o output -f bin
zxp2gus -t sprites -i assets/map/sprites.zxp -o output -f bin

PNG

zxp2gus -t tiles -i assets/map/tiles.zxp -o assets/map/ -f png
zxp2gus -t sprites -i assets/map/sprites.zxp -o assets/map/ -f png

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

zxp2gus-0.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

zxp2gus-0.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file zxp2gus-0.4.tar.gz.

File metadata

  • Download URL: zxp2gus-0.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for zxp2gus-0.4.tar.gz
Algorithm Hash digest
SHA256 b12fabe4ba4fc172fd23fee0f51c29fdd4c75dbbb33037205c9a68e1bc997d1c
MD5 e4851ea6934e1d37f1828189f90df342
BLAKE2b-256 263b5d0ce39e97266ccc30e2d2884daab036bb338f368fe4911f46fddb48c55e

See more details on using hashes here.

File details

Details for the file zxp2gus-0.4-py3-none-any.whl.

File metadata

  • Download URL: zxp2gus-0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for zxp2gus-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c7840c4562cac4d229a072f6d22f025416a57236a4a162e3925bdc036883da3e
MD5 4077e962d40f7d7d6600004de182cc67
BLAKE2b-256 dced1da60d875f8426f5b89d01e92c80c8044d7962ee57cddcf0dbcad7ba8432

See more details on using hashes here.

Supported by

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