'Clone' of the Google Chrome Dinosaur Game where you have to actually jump in real life
- Uses Vision to detect your face
- Set a position where you will be standing (not jumping yet)
- Every time you jump, the offset from the calibrated position is calculated. If it is above a certain threshold, it will be considered as a jump
- Every jump is sent to SpriteKit where you will be able to see your dinosaur jump
- Download the project from the
main
branch - Change the target to be your iPad (Remember to plug it in!)
- Run the app by pressing
Command + R
- Download the project from the
playgrounds
branch - Open it on your iPad and press the run button
- Ensure that the player walks back far enough that their face is fully visible in the Camera view
- Press the 'Calibrate' button, a blue line should appear above the player's head. Jump above that line for it to register as a jump
- Have fun! Press the 'Reset Game' button to restart the game. | Note: There will be some delay from the time you jump and the time the dinosaur jumps in the game. Do take note of that!
- SwiftUI
- UIKit
- Vision
- AVFoundation
- SpriteKit