Skip to content

Datastar07/Subway-suffer-Game-using-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Subway-suffer-Game-using-A.I.

Use pose estimation to play the game subway-surfers

Introduction

A Demo video shows how to play this game.🖼️
gif

Basically, I can play this game by controling my hand's movements.

  • Left hand go left -> the character moves to the left ⬅️
  • right hand go right -> the character moves to the right ➡️
  • left&right hand go up -> the character jumps ⬆️
  • left&right hand go down -> the character crouchs ⬇️

Installation ⬇️

Dependencies

  1. python == 3.10.0 (64-bit)
  2. opencv-python == 4.8.0.76
  3. PyAutoGUI == 0.9.54
  4. mediapipe == 0.10.5

⚠️ Note: These were the dependencies on which this project was done. It may or may not work as efficiently/correctly on other versions

Quick Start

  1. Create a Virtual Environment:
python -m venv your_virtual_env_name  # For Windows
# or
python3 -m venv your_virtual_env_name  # For Linux
  1. Activate the Virtual Environment:
source your_virtual_env_name/bin/activate  # For Linux/macOS
# or
.\your_virtual_env_name\Scripts\activate   # For Windows
  1. Install Dependencies from requirements.txt:
pip install -r requirements.txt
  1. Now, select the virtualenv kernel and Run the all the shell line by line which are present in Playing-Subway-Surfere-Game-using-pose-detection.ipynb

  2. In that, you need to start the game using this link Game-link and than you need to run second last shell in Playing-Subway-Surfere-Game-using-pose-detection.ipynb

  • follow the Demo video and play this game.

Note:📌

All the game is how works this all details are avilable in this python code Playing-Subway-Surfere-Game-using-pose-detection.ipynb

Customization:⚙️

The code is very simple, self-explained and easy to understand. You are free to customize it and create a new way to paly the subway-surfers.

About

Playing the subway surfers game using the A.I.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published