GB-Convert is a simple tool to convert png images into a format supported by Gameboy assembly.
The tiles conversion takes an arbitrarily sized image and outputs the assembly equivalent. It splits the image up into 8x8 tiles.
The map conversion takes in a 256x256 image (32x32 tiles), and matches the tiles in the image, with the tiles from your tilesheet, and outputs the assembly equivalent of your map for use on the Gameboy.
The -i flag inverts the color order, useful if you want to change the transparent color for sprite layers, etc
Which gives us output.txt, containing 4 tiles, 16 bytes each. Along with the tile index for each tile in the map.
Here’s an example of both a tile set, and a map. On the left you’ll see the tile set, which is a bunch of 8x8 tiles compiled into a single image. On the right you’ll see a map, which is comprised of tiles from the tile map aligned to an 8x8 grid.