An Arduino Platformer

2010.10.12 in code

Over the long weekend, I wrote a very simple platformer for the Arduino platform, targeting a grid of 8x8 RGB LEDs as its display. It has ground of varying height, monsters to kill (or to have kill you), coins to collect, and pretty clouds, as well as the classic side-scrolling and jumping mechanics you'd expect. The controller is just three buttons on a small breadboard with long wires back to the board. It's obviously not very sophisticated, having only 64 pixels to display things with, but it was an entertaining "just because" project.



The code is open-source (though not very clean nor well-documented, as it was a rushed weekend project) under the 2-clause BSD license, as always, on my Github. The hardware is simply three momentary pushbuttons, an Arduino Diecimila, a handful of resistors, and one of Sparkfun's 8x8 RGB LED matrices — nothing special.



There's a (somewhat long) video that pretty much demonstrates the entirety of the game (unfortunately, it was captured with my phone, so you can somewhat see the LED refresh rate — though keep in mind that the blinking yellow coins are actually blinking):



Should work if you're not stuck on IE...