Skip to content

A fast-paced, tilt-controlled game of tag built for the Adafruit Circuit Playground Express using the Arduino IDE.

Notifications You must be signed in to change notification settings

julwang3/CPX-NeoPixel-Tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPX NeoPixel Tag

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!

Video Demo

NeoPixel.Tag.Demo.Long.mov

Controls

Overview

  • Slide Switch : Start
  • Tilt Board : Move Player
  • Touch Pads : Pick Up Items
  • Microphone : Scare Enemies (by SCREAMING!!!!!!!!)
  • Push Buttons : Restart

Visualization

File Hierarchy

  • 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 initializes enum 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.

About

A fast-paced, tilt-controlled game of tag built for the Adafruit Circuit Playground Express using the Arduino IDE.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published