reefab / Sprite-machine

8x8 RGB sprites animation with an Arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.

Sprite Machine

This is a proof of concept to test displaying 8x8 RGB sprite animation on a ColorDuino.

Video

Test video

Project Description

As the Colorduino has a ATmega328P, with 32kB of flash and 2kB of RAM, displaying sprite animations requires some tricks.

The spritesheet is first fed through a python script spritesheet2h.py that extracts the color palette and then generates an Arduino source file with the indexed sprites data stored in flash.

This gets compiled along with the rest of the code and when run, the indexed color is read from flash for each pixel. It thus requires only a few bytes of memory for any frames of the animation.

The generated data is available as an example in src/spritesheet.h.

Requirements

Python Imaging Library

Current status

It's a proof of concept, it does nothing useful apart from displaying sprites.

Credits

The included spritesheet is distributed with permission from Oryx at Oryx Design Lab. You can find the complete sprite set here: LO-FI Horror sprite set.

About

8x8 RGB sprites animation with an Arduino

License:Other


Languages

Language:Objective-C 84.0%Language:C++ 10.7%Language:Processing 3.7%Language:Python 1.3%Language:C 0.4%