This Pong Game project is a Python-based implementation of the classic Pong game. Target was to learn about object-oriented programming and classes.
The Pong Game project is a classic Pong arcade game. It features two paddles and a bouncing ball. The objective is to prevent the ball from passing your paddle while trying to score points by getting the ball past your opponent's paddle.
- Use the
Up
andDown
arrow keys to control the right paddle. - Use the
W
andS
keys to control the left paddle. - The game starts automatically after a brief delay.
- Score points by getting the ball past your opponent's paddle.
- The game ends when the ball hits the side walls, and the score is displayed.
The project is organized into multiple Python files:
main.py
: The main game file that sets up the game, controls user input, and manages the game loop.paddle.py
: Contains thePaddle
class, which defines the behavior of the paddles.ball.py
: Contains theBall
class, which defines the behavior of the ball.scoreboard.py
: Contains theScoreboard
class, responsible for tracking and displaying the score.
To play the Pong Game:
- Clone this repository to your local machine.
- Ensure you have Python installed.
- Run
main.py
to start the game.