Snake Attack!
Here’s a quick post to show off my first project using the LED canvas I have been working on (nicknamed Square Wave). It’s based on the old snake game, where the player controls a snake that slithers around looking for apples that appear and disappear. When he finds (and eats) an apple, he grows. When he crashes into himself, he dies.
Code The code is open source, and you can find it on github.
Controller I’m using a wii nunchuck as a controller, which is a cheap way to get 2 buttons, a joystick, and a 3-axis accelerometer, all in a molded case. For this game, only the right & left directions on the joystick are needed, but the controller has a lot of potential for future games.