Home

Awesome

pixel-sprite-generator-luxe

Haxe port of Pixel Sprite Generator by zfedoran, modified to work with Luxe engine as Component.

Live Example

WEB Build - http://pub.darekgreenly.com/github/pixel-sprite-generator-luxe

<img src="https://raw.githubusercontent.com/Zielak/pixel-sprite-generator-luxe/master/doc/screenshot.png">

Installation

This repo comes with an example usage. You can just copy the folder psg to your own project.

Algorithm

The sprites are generated by using a two dimensional mask. The values in the mask are then randomized and mirrored. The resulting template is rendered to a texture.

<a href="http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/"><img src="https://raw.githubusercontent.com/Zielak/pixel-sprite-generator-luxe/master/doc/algorithm-1.png"></a>

The algorithm is explained in more detail on Dave Bollinger's website.

<a href="http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/"><img src="https://raw.githubusercontent.com/Zielak/pixel-sprite-generator-luxe/master/doc/algorithm-0.png"></a>