Cave-Dash is a game that uses Hand Detection Technology and Python. It Provides an interactive game for its users through Computer vision and numpy. It surely gets addictive once you get hooked on it.
Figuring out the landmarks of the index finger and patterns of the user and how the game should work. We ran into multiple bugs such as the orientation of objects, Overlaying, and implementing the said intent of the game. It took a while for us to debug the said Errors but we did not give up.
The installation process will recquire the following pre-requisites to be installed first
pip install opencv-python
pip install numpy
pip install mediapipe
then you can clone the repository using git
git clone <link>
After the installation is complete, run the main.py file.
As soon as the Program runs, The game Starts:
Move your finger and Earn Points , After every 2 scores , speed increases , As soon as you an obstacle , Game ends with a message "Game over , you can play again by pressing 'r' key "
The Project firstly tracks your hands , stores its landmarks and and works according to following parameters: -Generation frequency of Objects -Creating points and Obstacle objects and removing it dynamically -Checking if Obstacles are hit or not -Counting points and updating the objects in real time -Increasing Speed of the Game as the it Progresses
-Our code is Easy to Read and Beginner Friendly -We used limited modules and did not use any user-defined modules. Simply due to the reason that we wanted to write all the code from Scratch.
We wanted to implement many other features. Some of them are: -Dynamic Overlaying Images of the objects like Stars on "Circle Points", Spaceship on "Index Point" and Comets on "Barriers" -Hand Gesture Feature which implements jumping/pummelling via Opening and Closing of the Wrists -Feature of "Levels ", "Maps", and "Hardness"(Easy/medium/hard) --We can implement ML algorithms and Neural Networks to Smartly Generate the required Obstacles and Points for a harder game.