This is a simple implementation of a ping pong game using the Pygame library in Python.
Make sure you have Python and Pygame installed on your machine.
pip install pygame
Run the main.py
or v2.py
script to start the game.
python ping_pong.py
-
Left Paddle:
- Move Up: W
- Move Down: S
-
Right Paddle:
- Move Up: Up Arrow
- Move Down: Down Arrow
- The game starts with both paddles at the center and a ball moving between them.
- Use the paddle controls to hit the ball and prevent it from passing your paddle.
- Score points when the ball passes the opponent's paddle.
- The game continues until one player reaches a score of 5.
- The scores are displayed at the top of the screen.
- The game restarts after a 2-second pause when one player wins.
- https://www.youtube.com/watch?v=HNCAi0sjAz8 - NeuralNine Tutorial on PONG game using pygame