Skip to content
ZapskiRetro

Game Boy sprite editor

Draw 8×8 and 8×16 sprites and tiles, or open the ones already in your project, and export C that GBDK can compile.

Colour
Tool

Actual size

Repeated

1 tile

Size
Palette

You can also drag a file here, or paste C code or an image.

GBDK C output

Everything happens in your browser. Your files are never uploaded, and your current drawing is kept in this browser for next time.

How it works

Open a C file, or paste code anywhere on the page, and the editor finds the byte arrays in it. Edit the tiles and copy the array back. PNGs and raw 2bpp files open the same way.

An 8×16 sprite is two tiles stored one after the other, top then bottom. Changing the size only changes how the bytes are drawn; it never reorders them, so if an imported sprite looks scrambled, try the other size. Choose the size before you open a PNG, because that decides the order its tiles are cut in.

On the keyboard, arrow keys move around the grid, Space paints, and 0 to 3 pick a colour. Ctrl or Cmd with Z undoes.

Using the output

Add both files to your project. In 8×16 mode:

#include "sprites.h"

SPRITES_8x16;
set_sprite_data(0, sprites_TILE_COUNT,
                sprites_tiles);
set_sprite_tile(0, 0);
move_sprite(0, 80, 72);
SHOW_SPRITES;

The layout matches png2asset's tiles-only output. The count is always in 8×8 tiles, and tiles are never merged or reordered, so your tile numbers stay put. 8×16 sprite number n starts at tile n × 2.

Limits

  • Up to 384 tiles, all an original Game Boy can hold. Sprites can use 256 of them.
  • C arrays must be plain numbers. Macros and expressions are reported, not guessed. Super Game Boy border tiles use four bits per pixel and will look like noise.
  • Saving writes whole new files. To keep the rest of a source file, use Copy array only.
  • It does not write metasprites or Game Boy Color palettes. To make a background map from a picture, use the tile converter.

More tools