Project Runway - Glove Game
For this project I decided to make a simple 3D shooting game using my Nano and a Flora Magnetometer/Accelerometer.All code for this project can be found at this GitHub repository.
Circuit Diagram
How to Play
- The game starts by turning on the Arduino.
- Using information from the magnetometer, the glove knows roughly where you're pointing it.
- It will then generate a random target in space.
- The distance from this target is relayed back to the player via the pitch of the buzzer. As it gets higher pitched, it gets closer.
- When the player is close enough to shoot the target, the buzzer changes to a very distinct sound.
- At this point, the player can then touch their middle finger to their palm to shoot the target. If they're successful a longer low pitched "shooting" noise plays indicating that they've gained a point.
- When the player gets 5 points they win the game, and a short jingle is played to let the player know.
- The game can the be restarted by pressing the reset switch on the Arduino.
Video Playthrough
Below
is a short play through of me playing a round of the game.
No comments:
Post a Comment