LuisAldrichGuz

SPRITEBENCH

Stack: JavaScript, Canvas

Demo

Source

SPRITEBENCH

Cataloging a sprite sheet by hand is tedious: slicing each sprite, figuring out which is the flip of which, measuring how much floor space it takes in your game. Spritebench does that in the browser, no install needed.

The entry screen

You drop your sprite sheet (a PNG) into the window, or if you just want to see how it works, try the example one it comes loaded with. Everything happens in your browser: nothing is uploaded to any server.

Welcome screen of Spritebench
Drop your sprite sheet (PNG), or try an example one.

The overview

Once loaded, the right panel lists every sprite it detected, with its size in pixels and how many cells of the game grid it fits. You slice by hand, by rectangle, or let the auto-slicer find the sprites on its own.

Overview of the loaded sprite sheet
The sheet already sliced and grouped into sets.

The sets

A set is ONE object with its variants: front, side, back. And a variant can literally be another one flipped — a chair's right side is its mirrored left side — so there's no need to draw or save the art twice.

Sprite sets panel
A set is ONE object with its variants; a variant can be another one flipped.

The context menu

Right-click on any sprite for its quick options: add it to a set, flip it, delete it. The usual stuff from an image editor, but built for game sprites instead of photos.

Context menu over a sprite
Right-click on any sprite.

The properties panel

Every sprite carries its size in pixels, how many cells it occupies on the game floor (width × depth), and where its pivot sits — the point it rotates around or anchors to the ground from. That's what a game engine needs to place it correctly, and here it's visible and adjustable without guessing.

Sprite properties panel
Size, how many cells it occupies, and its pivot.

The Set menu

From here you group the selection into a new set, create an empty one, or ask Spritebench to find mirrors on its own — detect which sprites are the flip of which and build the sets for you.

Set menu open
Group the selection, create an empty set, or find mirrors automatically.

The command palette

Ctrl+K opens a command palette, like a code editor's, so you never have to leave the keyboard to hunt for the right button with the mouse.

Spritebench command palette
Ctrl+K, so you never leave the keyboard.

What it does