{"id":28762213,"url":"https://github.com/rajsinha7/gesture-controlled-crocodile-game","last_synced_at":"2026-05-09T06:35:44.386Z","repository":{"id":296892462,"uuid":"994884274","full_name":"Rajsinha7/Gesture-controlled-Crocodile-Game","owner":"Rajsinha7","description":"This is a fun arcade-style game where a cartoon crocodile moves left and right at the bottom of the screen, avoiding falling obstacles (red boxes) from the top. The game is controlled using real-time hand gestures captured via webcam using OpenCV and MediaPipe and the Game engine via pygame.","archived":false,"fork":false,"pushed_at":"2025-06-02T16:25:59.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-17T08:07:28.900Z","etag":null,"topics":["mediapipe","opencv","pygame-library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rajsinha7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T16:20:42.000Z","updated_at":"2025-06-02T16:28:01.000Z","dependencies_parsed_at":"2025-06-03T06:12:26.423Z","dependency_job_id":null,"html_url":"https://github.com/Rajsinha7/Gesture-controlled-Crocodile-Game","commit_stats":null,"previous_names":["rajsinha7/gesture-controlled-crocodile-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rajsinha7/Gesture-controlled-Crocodile-Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajsinha7%2FGesture-controlled-Crocodile-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajsinha7%2FGesture-controlled-Crocodile-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajsinha7%2FGesture-controlled-Crocodile-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajsinha7%2FGesture-controlled-Crocodile-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rajsinha7","download_url":"https://codeload.github.com/Rajsinha7/Gesture-controlled-Crocodile-Game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajsinha7%2FGesture-controlled-Crocodile-Game/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260318706,"owners_count":22991120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mediapipe","opencv","pygame-library","python"],"created_at":"2025-06-17T08:07:28.711Z","updated_at":"2026-05-09T06:35:44.376Z","avatar_url":"https://github.com/Rajsinha7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gesture-controlled-Crocodile-Game\nThe Gesture Controlled Crocodile Game is a fun arcade-style game developed using Python, where a cartoon crocodile moves left and right at the bottom of the screen to avoid falling obstacles.\nThe game is controlled using real-time hand gestures captured via a webcam using OpenCV and MediaPipe Hands, while the game logic and rendering are handled using Pygame.\n\nThis project demonstrates the integration of computer vision, gesture recognition, and game development.\n\n--\u003e Game Features:\n-Gesture Control\nUses the index finger position to move the crocodile left or right\n- Real-Time Camera Feed\nWebcam input processed live using MediaPipe Hands\n- Animated Crocodile\nSimple 3-frame tail animation\n- Falling Obstacles\nRed boxes fall from random horizontal positions\n- Collision Detection\nGame ends if the crocodile touches an obstacle\n- Scoring System\nScore increases as long as the player survives\n- Pause \u0026 Restart Controls\n-Press P to pause\n\n-ress R to restart after Game Over\n\n---\u003e Tech Stack\nComponent\tLibrary / Tool\tPurpose\nLanguage\tPython\tMain programming language\nGame Engine\tPygame\tRendering graphics \u0026 game loop\nCamera Input\tOpenCV (cv2)\tAccess webcam feed\nHand Tracking\tMediaPipe Hands\tReal-time finger tracking\nParallel Processing\tPython Threading\tRun camera detection alongside game\n--\u003e Project Structure\nGesture-controlled-Crocodile-Game/\n│\n├── hand-gesture-game-controller/\n│   ├── game.py\n│   ├── hand_tracking.py\n│   ├── assets/\n│   │   └── images/\n│   └── utils.py\n└── README.md\n\n--\u003e How to Run the Project\n1️.Prerequisites\nPython 3.x installed\nA working webcam\n\n2️. Install Dependencies\npip install pygame opencv-python mediapipe numpy\n\n3️. Clone the Repository\ngit clone https://github.com/Rajsinha7/Gesture-controlled-Crocodile-Game.git\ncd Gesture-controlled-Crocodile-Game\n4️. Run the Game\npython game.py\n--\u003e How It Works\nWebcam captures live video feed\nMediaPipe Hands detects hand landmarks\nIndex finger position is tracked\nFinger movement controls crocodile movement\nPygame renders graphics and handles collisions\n\nScore updates in real time\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajsinha7%2Fgesture-controlled-crocodile-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajsinha7%2Fgesture-controlled-crocodile-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajsinha7%2Fgesture-controlled-crocodile-game/lists"}