How riddh619/flappy-elon works
Flappy Elon is a Pygame game. The player starts or restarts from the menu, flaps through scrolling pipe gaps, earns points, and reaches a game-over screen after a collision; the game loop also tracks a session high score and increases pipe speed as the score rises. The graph separates game flow, gameplay entities, and shared configuration and assets. Relationships are based on the README and sampled source; unsampled asset behavior is represented only where the sampled code or README supports it.
Main entry points: main.py Game loop and screens · config.py Game configuration · images Image assets · audio.py Audio manager
Components 9
Game flow and UI
- Game loop and screens
FlappyBird/main.py - Audio manager
FlappyBird/audio.py
Gameplay entities
- Bird physics
FlappyBird/bird.py - Pipe pairs
FlappyBird/pipe.py - Scrolling ground
FlappyBird/ground.py
Shared settings and assets
- Game configuration
FlappyBird/config.py - Image assets
FlappyBird/assets/images - Audio assets
FlappyBird/assets/audio
Other components
- Player
Connections 15
- Player → Game loop and screens: starts and controls
README.md - Game loop and screens → Bird physics: updates and draws
FlappyBird/main.py - Game loop and screens → Pipe pairs: spawns and checks
FlappyBird/main.py - Game loop and screens → Scrolling ground: updates and draws
FlappyBird/main.py - Game loop and screens → Audio manager: plays game sounds
FlappyBird/main.py - Game loop and screens → Game configuration: reads settings
FlappyBird/main.py - Bird physics → Game configuration: reads physics settings
FlappyBird/bird.py - Pipe pairs → Game configuration: reads pipe settings
FlappyBird/pipe.py - Scrolling ground → Game configuration: reads ground settings
FlappyBird/ground.py - Audio manager → Game configuration: reads audio paths
FlappyBird/audio.py - Bird physics → Image assets: loads bird sprite
FlappyBird/bird.py - Pipe pairs → Image assets: loads pipe sprite
FlappyBird/pipe.py - Scrolling ground → Image assets: loads ground image
FlappyBird/ground.py - Game loop and screens → Image assets: loads optional background
FlappyBird/main.py - Audio manager → Audio assets: loads music and effects
FlappyBird/audio.py