Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 3.14 KB

Gamers-Paradise_bhagwanBharose.md

File metadata and controls

102 lines (68 loc) · 3.14 KB

Gamers-Paradise

🗒️About

• Making a Gesture-controlled 2D Car Racing game using phaser.js

• Implementing stearing control using hand gestures with help of OpenCv library of Python

• Visit our Github repo to clone and play the game.

👨‍💻 Tech-Stack

🛠️ Prerequisites

Gesture control

Following Libraries must be installed. The commands for installation are :

pip install numpy
pip install opencv-python
pip install mediapipe
pip install cvzone==1.4.1 
pip install pynput

In the code there is a part to capture the live stream Videocapture(n) here the index n is by default 0 for most machines but if the webcam doesn't work with 0 you can try 1,-1,0 and so on.

Play Game

Run the index.html file via livesever to play the game
Press Spacebar to Start the game

📈Progress

Game

  • Control the game using arrow keys
  • Add stars and enable scoring mechanism
  • Avoid enemy cars
  • Enable GameOver on Collision
  • Add maps and audio
  • Change control to awsd keys
  • Run game in Loop

Gesture Control

  • map awsd keys of keyboard to screen
  • enable control using awsd keys using gestures
  • Align keys in proper orientation
  • Link it with the game
  • Enable transparency of awsd keys

🎮 Demo of the game

racing.car.mp4

👋 Controlling the game using hand detection

Hnads.mp4

We have mapped the controls of the car to the W,A,S,D keys on the keyboard so by using these virtual keys we can control the car . We are using Mediapipe hand detection model under hood for hand detection .

hand_landmarks

🏅 Team Members

😎 Mentors