A classic Pong game made with Python and Pygame!
Supports both Single-player and 2-player modes:
- Score tracking
- Mode selector screen
- AI difficulty levels (Easy, Medium, Hard)
- Gradually increasing ball speed per difficulty
- Sound effects (bounce, score)
- Paddle boundary control
- Win screen
- 🎮 Single-player with AI (Easy / Medium / Hard)
- 🎮 2-player controls (W/S and UP/DOWN)
- 🧠 Mode selector screen (choose between single or multiplayer)
- 🔊 Sound effects on bounce and score
- 📈 Gradually increasing ball speed (based on difficulty)
- 🧱 Paddle boundaries (no flying off-screen)
- 🏆 Win message when a player reaches 6 points
- ⏳ Smooth gameplay with
delta_timefor frame consistency
- Install Python
- Install
pygameusing pip:
pip install pygame-
Place your sound files in the same folder:
bounce.wav→ for ball bouncesscore.wav→ for goals
-
Run the game:
python pong.py| Player | Move Up | Move Down |
|---|---|---|
| P1 | W |
S |
| P2 | ↑ |
↓ |
- Press
Spaceto start - Use
↑/↓keys to navigate menus - Press
Enterto confirm selection
- Restart after win
- Pause / Resume functionality
- Power-ups / Extra challenges
- Python 🐍
- Pygame 🎮
Made with ❤️ by aararvav
