Tools & Scripts

From F256 Foenix
Revision as of 12:09, 9 April 2024 by 1BitFeverDreams (talk | contribs) (added an entry to f256_sprite_cutter)
Jump to navigationJump to search

F256 Machines Game Development Tools

Sprite Creation Tools & Scripts

Tool Link --- Notes
Aseprite https://www.aseprite.org/ Aseprite can be used to create sprites animation or Tiles Sets.
f256_sprite_cutter https://gist.github.com/digarok/57b096236a7fb1c76efef6cbb9f73a83 Sprite cutter that cuts a PNG according to line-by-line instructions in a text file. Requires python and the PIL library, install with:
python -m pip install --upgrade pip 
python -m pip install --upgrade Pillow

Run with:

python f256_sprite_cutter.py myimage.png mylist.txt sprites.s

where mylist.txt contains a series of lines containing x, y offset, width, name, where it's assumed the width is the same as the height since it's for square sprites supported for the F256xx, such as 8,16, or 32.

The output (named sprites.s in this above example) is a series of hex instructions with a list of hex values of a color picked from the CLUT.

In order to make it compatible with 64tass, I search replaced hex->byte and replaced every value I could find by swapping in a $ in front (ie 00 -> $00 and 01 -> $01, etc.)

Scripts

Tile Creation Tools & Scripts

If you use Aseprite, you can convert your tile drawings to tilesets and tilemaps using the following scripts: