An open API service indexing awesome lists of open source software.

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 .

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.