PyPong is a classic Pong game developed using Python and Pygame. The game features both single-player and multiplayer modes, as well as a simple AI opponent. Players use paddles to hit a ball back and forth and try to score points by getting the ball past the opponent. The game features retro-style pixel graphics and sound effects, creating a nostalgic arcade experience.
- Single-player mode: Play against the "AI".
- Multiplayer mode: Play against another player.
- Endless mode: Play a game against the "AI" without any limitation to its movements.
- Sound effects: Enjoy various sound effects for scoring, ball hits, and game events.
- Retro graphics: Classic pixelated art style.
To run the game locally, you need to have Python and Pygame installed.
git clone https://github.com/gabrielelobosco/PyPong.git
cd PyPong
pip install -r requirements.txt
python pypong.py
Alternatively, you can download the (Windows only) and run the executable directly.
Use Up and Down arrow keys to select your preferred mode
1 Player Mode: Use the W and S keys to move the left paddle up and down. The AI will control the right one.
2 Players Mode: Player 1 uses W and S to move their paddle, while Player 2 uses the Up and Down arrow keys to move.
Endless Mode: Use the W and S keys and try to win against an extreme version of the "AI"
Pause the game: Press Esc to pause the game.
Resume the game: Press Esc again to unpause or Space to continue after scoring.
You can modify the game by changing the paddle size, ball speed, or winning score by editing the corresponding variables in the pypong.py file. -- Coming Soon: In-Game Options --
This project is licensed under the GNU License
PongBlipF4.wav by NoiseCollector -- https://freesound.org/s/4359/ -- License: Attribution 3.0
8 bit arpeggio 001 minor 120 bpm pulse1 030 F3.wav by josefpres -- https://freesound.org/s/664076/ -- License: Creative Commons 0
Videogame Menu Select by Fupicat -- https://freesound.org/s/471937/ -- License: Creative Commons 0
Short Explosion 1 by AceOfSpadesProduc100 -- https://freesound.org/s/334266/ -- License: Attribution 4.0
- 🎨 Game icon (pixelart): @ilariablasi