A fun and addictive game where you pop bubbles with your finger using computer vision!
This repository contains the code for a game where you can pop bubbles using your fingertip, detected through computer vision. It uses the Mediapipe library and OpenCV to track your hand movements and create a realistic bubble-popping experience.
Features:
- Pop bubbles with your fingertip
- Realistic bubble physics
- Particle effects for burst bubbles
- Score counter
- Time limit
Getting Started:
-
Install dependencies:
- Python 3.6+
- OpenCV
- Mediapipe
- numpy
- random
- time
-
Clone this repository:
git clone https://github.com/bhav09/pop-the-bubble.git
- Run the script:
python bubbles_with_effect.py
Gameplay:
- Point your finger at the camera and move it around to pop the bubbles.
- Try to pop as many bubbles as you can before the time runs out.
- The more bubbles you pop, the higher your score!
Enjoy the game!