https://github.com/enoobis/pong-game-python
Simple classic Pong game using Pygame .
https://github.com/enoobis/pong-game-python
Last synced: 3 months ago
JSON representation
Simple classic Pong game using Pygame .
- Host: GitHub
- URL: https://github.com/enoobis/pong-game-python
- Owner: enoobis
- License: mit
- Created: 2023-01-06T18:02:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T18:14:01.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T04:17:27.761Z (6 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pong Python (Pygame)
This is a simple implementation of the classic Pong game using Pygame. The game features a scoring system and game over functionality.
## Installation
To run the game, you will need to have Python and Pygame installed on your computer. You can download Python from the [Python website](https://www.python.org/) and install Pygame using pip:
`pip install pygame`
Copy code
## Usage
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.
## Customization
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.
## Credits
This game was created using Pygame. For more information on Pygame, visit the [Pygame website](https://www.pygame.org/).
## License
This project is licensed under the [MIT License](LICENSE). Feel free to use and modify the code as you see fit.