How vizzaq23/pinball-scoreboard works
This repository is a Python/Pygame pinball scoreboard integrated with Raspberry Pi GPIO, with keyboard input for desktop development. A player starts the game, then gameplay handles scoring and mode changes while polling physical or simulated inputs; the display and audio respond to play. Hardware setup and asset/audio loading are separate internal layers. The README also describes a service/diagnostics mode, but its implementation file is absent from the supplied tree. Edges reflect the sampled imports and documented capabilities; unsampled details are not inferred.
Main entry points: game.py Game loop and scoring · audio.py Sound and music · hardware.py GPIO abstraction · assets.py Asset loading
Components 7
Game flow
- Game loop and scoring
game.py - Service diagnostics
Display and audio
- Asset loading
assets.py - Sound and music
audio.py
Hardware integration
- GPIO abstraction
hardware.py
Other components
- Player
- Raspberry Pi GPIO
Connections 8
- Player → Game loop and scoring: plays
README.md - Player → Game loop and scoring: simulates inputs
README.md - Game loop and scoring → GPIO abstraction: polls and controls
game.py - Game loop and scoring → Sound and music: plays sounds
game.py - Game loop and scoring → Asset loading: loads images
game.py - Sound and music → Asset loading: loads sounds
audio.py - GPIO abstraction → Raspberry Pi GPIO: uses GPIO
hardware.py - Game loop and scoring → Service diagnostics: runs service mode
README.md