Skip to main content

32Blit asset preparation and upload tools

Project description

32blit Tools

Build Status Coverage Status PyPi Package Python Versions

This tool is intended for use with the 32Blit console to prepare assets and upload games.

WORK IN PROGRESS

You should install from source using:

git clone https://github.com/pimoroni/32blit-tools
cd src/
python3 setup.py develop

Running

32blit --help

Packing Image Assets

All image assets are handled by Pillow so most image formats will work, be careful with lossy formats since they may add unwanted colours to your palette and leave you with oversized assets.

Supported formats:

  • 8bit PNG .png
  • 24bit PNG .png

Options:

  • palette - Image or palette file (Adobe .act, Pro Motion NG .pal, GIMP .gpl) containing the asset colour palette
  • transparent - Transparent colour (if palette isn't an RGBA image), should be either hex (FFFFFF) or R,G,B (255,255,255)
  • packed - (Defaults to true) will pack the output asset into bits depending on the palette size. A 16-colour palette would use 4-bits-per-pixel.
  • strict - Only allow colours that are present in the palette image/file

Packing Map Assets

Supported formats:

Packing Raw Assets

Supported formats:

  • CSV .csv
  • Binary .bin, .raw

Changelog

0.0.5

  • Output data length symbols (thanks @Daft-Freak)
  • Fix --packed to be default, again (packed can be disabled with --packed no)
  • Various other tweaks
  • Start of 32blit file upload support

0.0.4

  • Default images to packed (packed arg now takes a bool)
  • Fix bug in sprite payload size (thanks @Daft-Freak)

0.0.3

  • Fix packaging mishap so tool actually works

0.0.2

  • Real initial release
  • Pack, cmake and asset commands working
  • Very beta!

0.0.1

  • Initial Release

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

32blit-0.0.5.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

32blit-0.0.5-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file 32blit-0.0.5.tar.gz.

File metadata

  • Download URL: 32blit-0.0.5.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for 32blit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7549d9bf8f9854ba0cc97f160a5323f11149f070fa39d77298894455c27bdbae
MD5 babec607f1f498f8a8d90ad802de4e52
BLAKE2b-256 d7a12f0ec0ddb910a969bd39f6574cf2401793b01943d79c9460728d87562d1d

See more details on using hashes here.

File details

Details for the file 32blit-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: 32blit-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for 32blit-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2eb23991499657ae7c388566f22b60267739bde334a1b5dbc65fc4fca9195d97
MD5 55a7894eb1af6591037843745d628fae
BLAKE2b-256 e30c1d450b57e4cd2d90a961628626b3bced1f3b952fb25af1812d2216c1773e

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