How dhankeerth/flappycomputervision works
This is a webcam-controlled Flappy Bird game. The user starts the application; its entry point creates the game and gesture controller, then runs the game loop while hand tracking runs on a daemon thread. Pinching dispatches a flap to the game, whose gameplay, rendering, and interface produce the on-screen result. The README documents additional visual and scoring features; because most of game.py and gesture_controller.py were not sampled, internal links beyond the shown entry-point wiring are limited to documented relationships.
Main entry points: game.py Game loop · main.py Application entry · gesture_controller.py Hand tracking
Components 11
Application runtime
- Application entry
main.py
Gesture input
- Hand tracking
gesture_controller.py - Pinch detection
gesture_controller.py
Game experience
- Game loop
game.py - Bird physics
game.py - Pipes and collision
game.py - Scrolling scenery
game.py - Menus and scoreboard
game.py - Visual effects
game.py
Other components
- Player
- Webcam
Connections 11
- Player → Application entry: starts
README.md - Application entry → Game loop: creates and runs
main.py - Application entry → Hand tracking: starts thread
main.py - Webcam → Hand tracking: provides frames
README.md - Hand tracking → Pinch detection: tracks landmarks
README.md - Pinch detection → Game loop: dispatches flap
README.md - Game loop → Bird physics: updates and draws
README.md - Game loop → Pipes and collision: manages gameplay
README.md - Game loop → Scrolling scenery: renders scenery
README.md - Game loop → Menus and scoreboard: renders interface
README.md - Game loop → Visual effects: renders effects
README.md