Skip to content

๐ŸŽฎ Gesture-Controlled Platformer Game (Pygame + MediaPipe) This project is a 2D platformer game built with Python, Pygame, and MediaPipe, controlled entirely through hand gestures using your webcam. Move left, move right, and jump โ€” all without touching the keyboard!

License

Notifications You must be signed in to change notification settings

Agnik-git-sys/Platformer-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Gesture-Controlled Platformer Game A Python + Pygame + MediaPipe Project Powered by Hand Tracking AI

This project is a 2D platformer game where the player is controlled entirely through hand gestures captured from a webcam. Move left, move right, and jump โ€” all without touching the keyboard!

Built using: โœ” Pygame for the game engine

โœ” MediaPipe Hands for gesture recognition

โœ” OpenCV for webcam input

โœ” Tkinter for Game Over / Win screens

๐Ÿš€ Features ๐ŸŽฎ Core Gameplay

Smooth player animation frames

Physics system: gravity, falling, jumping

Moving enemies with simple patrol AI

Level built using a 2D grid map

Collision with platforms, ground tiles, and enemies

๐Ÿ Win/Lose States

Game Over screen (Tkinter) You Win screen Automatic restart function

๐Ÿ› ๏ธ Tech Stack Component Technology Game Engine Pygame Gesture Detection MediaPipe Hand Webcam Input OpenCV UI Popups Tkinter Language Python

๐Ÿ•น Controls (Gesture-Based) Gesture Action

Hand moves Left Move player left

Hand moves Right Move player right

Index finger up Jump

These gestures are detected using MediaPipeโ€™s hand landmark tracking.

๐ŸŽฏ Future Improvements

Add keyboard fallback controls

Add coins & scoring system

Add more levels

Add background music + SFX

Add main menu & pause menu

Add player health and multiple lives

Export as a Windows .exe

๐Ÿ™Œ Thank You for Reading! ๐Ÿฆพ

About

๐ŸŽฎ Gesture-Controlled Platformer Game (Pygame + MediaPipe) This project is a 2D platformer game built with Python, Pygame, and MediaPipe, controlled entirely through hand gestures using your webcam. Move left, move right, and jump โ€” all without touching the keyboard!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages