Skip to main content

Darek Greenly

Personal blog, expect game dev and web stuff

Pixel Sprite Generator

Recently I’ve found this interesting Pixel Sprite Generator. You can create procedurally generated sprites on the fly. It uses ala 2D array of values to draw solid outline, “soft” body or an empty pixel. Provide just one mask and get millions of variations.

I can see it being used in rouge-like games, besides procedurally generated levels: enemy sprites, weapons, items, EVERYTHING.

It is written in JS so I couldn’t help but port it over to Haxe!

JS version draws on canvas and Haxe on openfl.BitmapData. Enough talking, go check live example if you’re not yet excited:

Live Example (keep refreshing that thing for new sprites!)

Comments