
STORYBOARD | THEMING | CAD | ELECTRONICS | SOFTWARE | USER EXPERIENCE
KEVIN LEOANRDO | TEAM ARK | THEME: SUGARLAND | HOME
Code
The Arduino code randomly selects a primary color and asks the player to grab that specified color. We have an RBG LED in place to visually indicate which color needs to be grabbed. Currently there is about a 3 second grace period. During this time, the LED is blinking the specified color, players are allowed to hold any mounts they need to in order to get to the appropriate color. Once the lights stops blinking, however, the player must remain on the designated color. This process repeats for 5 cycles. Should the player touch an incorrect color, the LEDs turn off and the score is reset to 0. After 5 correct grabs, the player wins the game which is designated by the LEDs quickly cycling through all the colors: red, blue, and yellow.
CodeDemo
The current demo depicts the Serial Monitor with the specified commands and keeps a tally of the score. For actual gameplay, however, we only need to focus on the LED on the top left of the wall mount and will not need to rely on the Serial Monitor. As of now, this monitor is only being used as a means of debugging and giving a more discriptive idea of what is happening within the controller. The LED indicates which color needs to be touched by the time the blinking stops. As can be seen in the demo, touching other sensors during this period does NOT affect your overall score.