Atari's arcade classic resurrected in python with some additional gameplay options.
pyPong is a two-player Pong game built using the pygame library. It features basic paddle movement, ball collision detection, score tracking, and powerups. This was built as a code along project following the YouTube video Pong with Python & Pygame – Tutorial from freeCodeCamp.org
All sound effects for the game were sourced from https://soundbible.com/ and all credit for the sound effects goes to their respective creators. Direct links to the sound effects used are listed below:
- Two-player Pong game
- Paddle movement using 'W'/'S' (Player 1) and arrow keys (Player 2)
- Ball collision detection
- Score tracking for both players
- Powerup system with smash and flash powerups
- Sound effects for ball collision, smash powerup, and flash powerup
- Random ball direction and angle on score
- Responsive UI with real-time updates
- Python 3.6 or higher
- pygame library
- Clone the repository:
git clone https://github.com/brando5393/pyPong.git
- Navigate to the project directory:
cd pyPong
- Install the required dependencies:
pip install pygame
- Run the game:
python main.py
-
Play the game using the controls mentioned below.
-
The game window will display the player scores, powerup counts, and the Pong gameplay.
-
Player 1 (Left Paddle):
- Move Up: 'W' key
- Move Down: 'S' key
- Smash Powerup: 'D' key
- Flash Powerup: 'A' key
-
Player 2 (Right Paddle):
- Move Up: Up Arrow
- Move Down: Down Arrow
- Smash Powerup: Right Arrow
- Flash Powerup: Left Arrow
This project is licensed under the MIT License.