Skip to content

reidrac/c64-pixel-tools

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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