1.0.0 • Published 6 years ago
ggbgfx v1.0.0
ggbgfx
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.
CLI
See also ggbgfx-cli
for a command line interface.
Install
npm install --save ggbgfx
API
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.
1.0.0
6 years ago