Haxe procedural sprite generator
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 15 commits ahead, 16 commits behind zfedoran:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
psg
.gitignore
LICENSE
Main.hx
PixelSpriteGenerator.hxproj
README.md
haxelib.json
project.xml

README.md

pixel-sprite-generator

Haxe port of Pixel Sprite Generator by zfedoran.

Live Example

SWF - http://zielak.pl/pub/github/pixel-sprite-generator/PixelSpriteGenerator.swf

HTML/JS - http://zielak.pl/pub/github/pixel-sprite-generator/

Installation

Using Haxelib

haxelib install pixel-sprite-generator

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 canvas element.

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