This is a simple implementation of the classic Pong game using the Python Turtle Graphics library.
Pong is a two-player arcade game in which the players control paddles to hit a moving ball back and forth across the screen. The goal is to make the ball pass the opponent's paddle to score a point. The player with the highest score wins.
These instructions will help you get the game up and running on your local machine.
To run this game, you will need:
- Python 3.x or higher.
Clone the repository to your local machine:
git clone https://github.com/mlindens/Pong_Game.git
Navigate to the folder containing the source files in your terminal or command prompt.
cd Pong_Game
Run the following command:
python main.py
The game window will open, and you can start playing.
Right paddle:
- Up: Up arrow key
- Down: Down arrow key Left paddle:
- Up: 'w' key
- Down: 's' key
This implementation of Pong consists of the following components:
- Paddle: A class representing the paddles that the players control. Each paddle can move up and down using the specified controls.
- Ball: A class representing the ball that moves across the screen and bounces off the paddles and walls.
- Scoreboard: A class representing the scoreboard that keeps track of each player's score and displays it on the screen.
- These components are imported into the main.py script, which sets up the game window, initializes the game objects, and manages the main game loop.
- The original Pong game, which inspired this implementation.
- The Python and Turtle documentation for providing valuable resources and examples.