Skip to content

Zal0/pngb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pngb

PNGB: GB Graphics Converter PNGB is a command line utility that converts PNG files to GBDK data definitions and code.

What is this good for?

PNGB can take a PNG image, slice it in 8x8 (or 8x16 if you are using GB "big sprites") tiles and output a single C source code file containing the pixel data, the color palette, attribute array and a tilemap (that recreates the source image using the extracted tiles).

It can additionally generate "test code" that allows you to see (to some extent) the result of the conversion and how to use the data.

PNGB currently supports 8x8 tiles (BKG or WIN layers) and Sprites (both 8x8 and 8x16).

It also supports color pictures. If your image has 4 colors or less PNGB will generate an equivalent 15-bit palette for GBC. For images with more than 4 colors you'll have the options to let PNGB convert it to grayscale first and then attempt to match each color with one of the four shades of the original Gameboy.

Currently PNGB can only generate a single palette for the whole image, but in a future it may be able to extract multiple palettes from a single image.


You can see more details and examples in http://damnsoft.org/web/software/pngb

About

PNGB: GB Graphics Converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 77.6%
  • C++ 22.2%
  • Makefile 0.2%