๐ฎ 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! ๐ฆพ