Built a gesture-controlled Duck Hunt game that tracks your hands, lets you shoot with pinch gestures, and judges your aim harder than your relatives.
Control the game using your real hand gestures through your webcam:
- 👉 Point to aim
- 🤏 Pinch fingers to shoot
- 😂 Get laughed at by the dog if you miss
- See intro: dog walks, sniffs, jumps
- Ducks appear
- Point finger at duck
- Pinch thumb+index to shoot
- 3 misses = GAME OVER
- Higher levels = more ducks + harder
- Blue duck: 100 points
- Green duck: 200 points (level 3+)
- Red duck: 300 points (level 5+)
Accuracy tracked in real-time Levels increase difficulty and add new duck types
The game uses:
- MediaPipe Hands to detect hand landmarks from webcam input
- Finger tip coordinates for cursor movement
- Pinch detection between thumb & index finger for shooting
- HTML5 Canvas for rendering sprites and animations in real time
This project turns your webcam into a retro Nintendo-style light gun.
The ducks still fly.
The dog still laughs.
Give it a star ⭐ and shoot some ducks responsibly.