Library for converting images into the Nintendo Game Boy's graphics format.
Use this library to build an asset pipeline for your game's graphics.
Visit the gbdkjs.com website for more information.
See also ggbgfx-cli
for a command line interface.
npm install --save ggbgfx
const ggbgfx = require("ggbgfx")
imageToTilesString(filename)
Convert PNG image to Game Boy tile data.
imageToSpriteString(filename)
Convert PNG image to Game Boy sprite data.
imagesToTilesetImage([filenames], outfile)
Convert PNG images to a PNG tileset containing only the unique tiles from the input images.
imageAndTilesetToTilemap(filename, tileset, offset)
Convert an input PNG image and tileset output tilemap data. Optional offset
tilemap numbers by n tiles. Needed if not loading tilemap at initial memory location.