How lukosha58/ping-pong works
A small Pygame Pong game for two players: the player opens a menu, starts a match, controls separate paddles, and plays until one side reaches 10 points. The main loop owns game updates and scoring checks; the ball handles collisions, scoring changes, and impact playback. README documents the two-player Pong goal, and the menu source shows help and exit options. The tree supports the bundled asset paths, but no additional runtime integrations are evident.
Main entry points: main_menu.py Menu · main.py Game loop · ball.py Ball physics · pad.py Paddles
Components 10
Menu
- Menu
main_menu.py - Menu assets
images - Menu music
music/menu_music.ogg
Match
- Game loop
main.py - Paddles
pad.py - Ball physics
ball.py - Impact sound
music/impact.ogg - Gameplay music
music/gameplay.ogg - Pixel font
font
Other components
- Player
Connections 11
- Player → Menu: opens menu
- Menu → Menu assets: loads background
- Menu → Menu music: plays
- Menu → Game loop: starts match
- Game loop → Paddles: updates
- Game loop → Ball physics: updates
- Ball physics → Paddles: changes scores
- Ball physics → Impact sound: plays on impact
- Game loop → Gameplay music: plays
- Game loop → Pixel font: renders text
- Menu → Pixel font: renders text