Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
/ c64-pixel-tools Public archive

Some tools to process C64 sprites and tilesets

Notifications You must be signed in to change notification settings

reidrac/c64-pixel-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C64 Pixel Tools

These are two simple tools I used to make Rescuing Orc.

Convert PNG images into sprites and tilesets to be used by the Commodore 64.

  • img2sprite.py
  • img2tileset.py

Each tool has help in the CLI with -h.

Requirements

  • Python 2.7
  • Pillow

img2sprite

This tool takes an indexed PNG image and encodes it as a valid multicolor sprite.

The transparent and sprite specific colors can be specified with a flag, the shared colours are in ascending order.

The colors are not included in the output.

img2tileset

This tool takes an indexed PNG image and encodes it as a valid 4x8 multicolor tileset (charset).

The shared colors must be provided as a colon-separated list (eg. 0:1:12). The foreground is detected per tile (from 0 to 7, the tool converts it automatically to the 8 to 15 range).

About

Some tools to process C64 sprites and tilesets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages