Play Bubble Shooter using your hands — pinch to grab, pull to aim, release to shoot.
Built with MediaPipe Hands + HTML5 Canvas + JavaScript
Version 1.0.0 • Developed by Amit Das
🎮 Play on CodePen:
👉 https://codepen.io/AmitDas4321/pen/RNRQJgy
Bubble Shooter (Hand Gesture Controlled) is a modern, AI-inspired browser game where you control the slingshot using real-time hand tracking.
Instead of mouse or touch, the game uses MediaPipe Hands to detect a pinch gesture (thumb + index), letting you grab, aim, and shoot bubbles naturally.
The webcam runs as a cinematic blurred background, while the gameplay stays sharp on a responsive Canvas UI.
- 🖐️ Real-time hand tracking
- 🤏 Pinch to grab, release to shoot
- 🎯 Slingshot physics (bounce walls + friction)
- 💥 Match-3 popping + particle effects
- 🎨 Smart color picker
- 📱 Fully responsive (mobile + desktop)
- 🔒 Privacy-friendly (no camera data leaves your browser)
- Open the game (GitHub Pages or CodePen)
- Allow camera access
- Bring your hand in front of the camera
- Pinch near the shooter bubble to grab it
- Pull back to aim
- Release to shoot
- Match 3+ same-color bubbles to score
| Gesture | Action |
|---|---|
| Pinch (Thumb + Index) | Grab bubble |
| Move while pinching | Aim |
| Release pinch | Shoot |
- HTML5 Canvas
- JavaScript (ES Modules)
- TailwindCSS (CDN)
- MediaPipe Hands
- MediaPipe Camera Utils
- MediaPipe Drawing Utils
Camera may not work with
file://— use a local server.
- Install Live Server
- Right-click
index.html→ Open with Live Server - Allow camera access
python -m http.server 5500Open in browser:
http://localhost:5500/
├─ index.html
├─ LICENSE
├─ FUNDING.yml
├─ screenshots/
│ ├─ BubbleShooter_Banner.png
│ └─ gameplay.png
└─ README.md- Camera is used only for hand landmark detection
- All processing runs locally in the browser
- No data is stored or transmitted externally
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by Amit Das
☕ Support development: PayPal.me/AmitDas4321

