A fast-paced, tilt-controlled game of tag built for the Adafruit Circuit Playground Express using the Arduino IDE. Collect as many items as you can while evading enemies and scaring them away with your voice!
NeoPixel.Tag.Demo.Long.mov
- Slide Switch : Start
- Tilt Board : Move Player
- Touch Pads : Pick Up Items
- Microphone : Scare Enemies (by SCREAMING!!!!!!!!)
- Push Buttons : Restart
Game.ino
: Main Arduino script written in C that handles hardware sensor input from the CPX and the overall gameplay state and logic.Game.h
: Header file that initializesenum GameState
,struct Color
, and numerous constants used across multiple scripts.Player.h
/Player.cpp
: Handle player movement based on acceleration data from the accelerometer.Enemy.h
/Enemy.cpp
: Handle enemy movement and AI using a FSM.Item.h
/Item.cpp
: Handles item pickup and regeneration based on player input from the capacitative touch pads.Audio.h
/Audio.cpp
: Stores and returns SFXs associated with specific game interactions.
