Skip to content

np-overflow/jumping-dino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Jumping Dino Game

Ok what if, you were the space bar?

A glorified space bar so you can play the Chrome Dino game by physically jumping. Possibly a good way to force yourself to exercise.

image

Requirements

  • Xcode 14.2
  • Minimum system version (run project): macOS Catalina, 10.15
  • Minimum system version (build project): macOS Ventura, 13.2
  • Google Chrome

Running the Project

  1. Open the .xcodeproj and run the project
  2. Open Chrome and go to chrome://dino.
  3. Bring the app into the foreground
  4. Get the player to stand back, making sure their face is fully visible with some space towards the top of their head
  5. When the face tracking locks onto the player, click the C key or press Callibrate. This will add a red line just above their head.
  6. If the centre of their head passes the line, it is detected as a jump and the space bar will be pressed
  7. Bring the Chrome window to the foreground and get the player to jump to start the game

Note: there would be a slight lag between detection and the actual space bar being pressed depending on the Mac running it

Permissions

  • Camera: Track face to track jumps
  • Accessibility: Press the space bar automatically

Built for NP Open House 2023.

About

🦖 Chrome's dinosaur game meets actual jumping.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%