lenardg / 32blit-tools

32blit asset management and upload tool

Home Page:https://32blit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

32blit asset management and upload tool

https://32blit.com/

License:MIT License


Languages

Language:Python 96.0%Language:Makefile 4.0%