This is a simple implementation of the classic Pong game using Pygame. The game features a scoring system and game over functionality.
To run the game, you will need to have Python and Pygame installed on your computer. You can download Python from the Python website and install Pygame using pip:
pip install pygame
Copy code
To start the game, run the following command in the terminal:
python pong.py
Copy code
Players can control the paddles using the W and S keys for the left paddle and the Up and Down arrow keys for the right paddle. The game ends when one of the players reaches the maximum score, which is set to 5 by default.
The game can be customized by changing the dimensions and initial positions of the game objects, the velocities of the game objects, the maximum score, and the frame rate in the code. Simply open the pong.py
file in a text editor and modify the relevant variables.
This game was created using Pygame. For more information on Pygame, visit the Pygame website.
This project is licensed under the MIT License. Feel free to use and modify the code as you see fit.