This interactive vault experience blends microcontrollers with javascript using serial communication to create a unique game where players must follow steps carefully in order to unlock a vault and steal a precious diamond without activating a bomb.
Diva Detective is an interactive vault experience where players must follow a series of steps to unlock a vault and steal a diamond without triggering a bomb. The game combines physical components controlled by microcontrollers with a digital interface built using JavaScript, creating an engaging and immersive gameplay experience. It ends in an intense bomb defusion with explosive results.
The project was built in p5.js for the digital interface, while the physical components were controlled using Arduino microcontrollers. Serial communication was established between the p5.js application and the Arduino boards to facilitate real-time interaction between the digital and physical elements of the game.
One of the main challenges was ensuring reliable serial communication between the p5.js application and the Arduino microcontrollers. I had to carefully manage the data being sent and received to prevent any lag or miscommunication that could disrupt the gameplay experience.
Another challenge was designing the physical components to be both functional and engaging. We had to consider the placement of sensors and outputs to ensure that players could easily interact with the game while maintaining the immersive experience.
The code architecture is modular, with separate components for handling serial communication, game logic, and animation. The p5.js application manages the overall game state and user interface, while the Arduino code handles sensor input and output control. This separation of concerns allows for easier debugging and future expansions of the game.
The game was featured in UT's SDCT Inside Out Showcase in Spring 2024. This project provided valuable experience in integrating physical computing with digital interfaces, as well as designing engaging gameplay experiences that combine multiple interaction modalities. I gained a deeper understanding of serial communication, microcontroller programming, and the challenges of creating immersive physical-digital experiences.