ggbgfx

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ggbgfx

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • chrismaltby