Piano Tiles: Hand and Foot
- overview
A rhythm-game where you must hit tiles falling in four columns using Arduino-connected hand (red) and foot (blue) buttons. Complete the Crazy Frog song to win; miss 3 times and you lose.
2. Arduino
Buttons: 4 hand inputs (pins 2–5), 4 foot inputs (pins 6–9)
Wiring: Buttons wired to +5 V with external pull-downs to GND
3. p5.js
Tile engine:
-Spawns one tile at a time per a predefined ;pattern[]’ of ‘{col, isFoot}’ steps
-Draws tile in its column, colored by ‘isFoot’ (blue) or hand (red)
-Moves tile downward at speed chosen by difficulty
-Lose if lives hit zero; win if you clear the last tile before the sample ends