Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Zielak/pixel-sprite-generator-luxe

Pixel Sprite Generator prepared for Luxe engine
https://github.com/Zielak/pixel-sprite-generator-luxe

Last synced: 2 months ago
JSON representation

Pixel Sprite Generator prepared for Luxe engine

Lists

README

        

pixel-sprite-generator-luxe
======================

Haxe port of [Pixel Sprite Generator](https://github.com/zfedoran/pixel-sprite-generator) by [zfedoran](https://github.com/zfedoran), modified to work with [Luxe engine](http://luxeengine.com) as `Component`.

## Live Example

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

## 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.

The algorithm is explained in more detail on [Dave Bollinger's](http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/) website.