A modern, animated version of the classic Pong game built with Python and Pygame.
- Single-player mode: Play against a CPU opponent with moderate AI.
- Pause menu: Press
ESCduring the game to pause and resume. - Animated UI: Smooth button animations in the main menu.
- Background music placeholders: Easily replace with actual music files.
- Sound effects placeholders: Add your own sounds for ball hits, scoring, etc.
- Win/Lose screen: Displays a pulsating text animation when the game ends.
Make sure you have Python installed on your system.
python --versionIf Python is not installed, download and install it from python.org.
You need Pygame to run the game. Install it using:
pip install pygameClone this repository and navigate to the project folder:
git clone https://github.com/BorgorNinja/PyPong.git
cd PyPongThen, run the game with:
python pong.py| Action | Key |
|---|---|
| Move Up | W |
| Move Down | S |
| Pause | ESC |
- Replace
play_background_music(track_name)with actual sound file loading usingpygame.mixer.music.load(). - Modify
play_sound(name)to play your own sound effects.
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes and commit (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-name). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.