In fall of 2020, four classmates and I created an Arduino-coded game for students to enjoy during finals week. Since the game was to be played publicly during the Covid-19 pandemic, we were challenged to make the game controls entirely handsfree and without breaking social distancing requirements.
Our solution was a game in which the player controls the Monkey King - of the classic Chinese novel Journey to the West - to defeat the Dragon King. To ensure our game provided stress relief for students studying for finals, we chose to let the character be controlled by players screaming as loudly as they could. The player needed to match the height of the randomly moving Dragon King in order to attack it, by screaming to adjust the height of the Monkey King as it "levitates" in the air. The player must then defeat the Dragon King before time runs out to win.
I took a leadership position within the team to ensure each part of the game came together successfully, including stepping up to challenges such as wiring the entirety of the electrical components of the game and modifying the sound detector component in order to make its receiver provide usable data to the Arduino board, which was then followed up with hours of play-testing and adjustment. Our hard work paid off, as Battle of Kings was enjoyed by over 100 students with a satisfaction rating of over 85%.
To play the game, the user screams into a sound detector to raise the Monkey King in the air. The intensity of their screams allows the Monkey King to match the height of the computer-controlled Dragon King, and the user can then press the foot pedal to attack. Each attack lowers the health (displayed by a color-changing LED) of the Dragon King, who must be defeated before the time limit to win.
The heights of both characters are changed by a pulley-motor system. In order to detect the heights of the characters within the code, ultrasonic sensors were attached on the surface of the table below the characters. This information is used to determine if the heights of the characters match, and prevents the characters from being pulled too far by the pulley-motor system or dropped to the ground too abruptly, causing the game to break.
Short demonstration of gameplay
All 3D printed components
Motor holder and wheel, which controls height of characters
Player-controlled character, the Monkey King
Computer-controlled character, the Dragon King