Skip to content

celiobjunior/LidAngleSensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lid Angle Sensor Basketball Game

A macOS application that uses your MacBook's lid angle sensor to control a basketball game. Move your lid to dribble the ball and score baskets.

Game Screenshot

Game Screenshot

How to Play

  1. Open and close your MacBook lid to dribble the basketball
  2. Quick movements create stronger dribbles
  3. Try to get the ball into the basket to score points
  4. The game shows your current score and lid angle in real-time

Compatibility

Works on MacBooks with lid angle sensors (2019 16-inch MacBook Pro and newer).

Building

Requires Xcode. Build with:

xcodebuild -project LidAngleSensor.xcodeproj -scheme LidAngleSensor -configuration Release build

About

Basketball Game with Macbook's Lid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 56.4%
  • Objective-C 43.6%