A music rhythm game made to run on the Raspberry Pi 3 embedded in a guitar with sensors, which act as a controller. Final project for my Programming I (INF1034) course at PUC-Rio, in collaboration with design student Renato Coutinho, and his final project for Physical and logical interfaces (DSG1412).
This is a simple game written using Pygame 2.5, with several optimizations to run smoothly on the RPi3, and a modular code structure which allows it to be easily further developed. Supports keyboard input (Z X C V) if you want to run it on PC, simply change GAME_USEKEYBOARDINPUT to True in the cfg file. Our game window looks like this:
For hardware, we use four TTP223 touch sensors, a HW-504 analog joystick which acts as the strum bar, and an Arduino Nano as an analog-to-digital converter, since the RPi has no analog inputs. All connected to the RPi's GPIO using jumper wires on a breadboard, which is zip-tied to a toy guitar, as shown below:
Initial concept drawn on ICAD's whiteboard by game designer Renato:
Playtest by developer Miguel at ICAD laboratory: