This is a simple implementation of a classic Ping Pong game using the Pygame library. Players control paddles to hit a ball back and forth, trying to score points by making the ball pass their opponent's paddle.
- Use the 'W' key to move the left paddle up and the 'S' key to move it down.
- Use the up and down arrow keys to move the right paddle up and down, respectively.
- The game will start as soon as you run the script.
- The ball will initially move towards a random direction.
- Bounce the ball back with your paddle to prevent the opponent from scoring.
- The game continues until one player scores a point.
- After a score, the ball will reset to the center, and the game will continue.
- Ensure you have Python installed on your system (Python 3.x is recommended).
- Install the Pygame library using pip:
pip install pygame
- Download or clone the repository to your local machine.
- Navigate to the project directory containing the 'ping_pong.py' file.
- Open a terminal or command prompt in that directory.
- Run the following command to start the game:
python ping_pong.py
- Python 3.x
- Pygame