Skip to content

'Clone' of the Google Chrome Dinosaur Game where you have to actually jump in real life

Notifications You must be signed in to change notification settings

Ethan-Chew/Jumping-Dino-iPad

Repository files navigation

Jumping Dinosaur on iPad

'Clone' of the Google Chrome Dinosaur Game where you have to actually jump in real life
Image

How it works

  • 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

How to play (Compiling from Xcode)

  1. Download the project from the main branch
  2. Change the target to be your iPad (Remember to plug it in!)
  3. Run the app by pressing Command + R

How to play (Swift Playgrounds)

  1. Download the project from the playgrounds branch
  2. Open it on your iPad and press the run button

Do note:

  • 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!

Technologies Used

  1. SwiftUI
  2. UIKit
  3. Vision
  4. AVFoundation
  5. SpriteKit

About

'Clone' of the Google Chrome Dinosaur Game where you have to actually jump in real life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages