zanviq
All projects

ChinningGame

It's a Flappy Bird game operated by detecting chin-up movements using webcam pose recognition.

Updated · Jul 2, 2026
ChinningGame

Chin-up Flappy Bird (ChinningGame)

  • One-line introduction: A Flappy Bird game operated by detecting chin-up movements using webcam pose recognition.
  • Period: 2024.09 (Web extension version planned)
  • Role: Personal Project (Planning, Development)
  • Tech Stack: Python, Pygame, MediaPipe, OpenCV

Reason for creation / Problem

I created this to add interest and a competitive spirit to exercise. Instead of a keyboard or mouse, I used a webcam to detect shoulder position, so the bird goes up when you do a chin-up and goes down when you lower your arms.

Key Features

  • Real-time Pose Recognition: Operates the character by detecting shoulder coordinates in real-time with MediaPipe.
  • Dual Window: Displays the game screen and camera feed in separate windows.
  • Ranking System: Saves scores to JSON and displays the top 5 players.
  • Progressive Difficulty: Speed increases each time a pipe is passed.

Parts I personally considered

To prevent pose recognition from jumping erratically, I interpolated the previous and current positions at a ratio of 0.8:0.2 to create smooth movement. Also, to prepare for situations where pose recognition fails, I included a manual jump with the spacebar and gravity physics processing, allowing the game to continue even if recognition is interrupted.

Improvements and web deployment are being designed.

Links