Welcome to the Pong Game! ๐ฎ This is a simple Python implementation of the classic Pong game using the Turtle graphics library. In this game, you control two paddles to keep a ball bouncing between them. The objective is to score points by preventing the ball from passing your paddle. ๐
- Clone or download the repository to your local machine. ๐
- Open your terminal or command prompt and navigate to the directory where you saved the code. ๐ฅ๏ธ
- Run the main file,
main.py
, using Python: ๐
Enjoy the game! ๐
- Use the up and down arrow keys to control the right paddle. โฌ๏ธโฌ๏ธ
- Use the 'W' and 'S' keys to control the left paddle. 'W' 'S'
- The game starts as soon as you run the
main.py
file. ๐ฆ - Score points by preventing the ball from passing your paddle. โฝ
- The game will continue until you decide to exit it. ๐ช
main.py
: This is the main script that runs the Pong game. It sets up the game screen, paddles, ball, and handles game logic, including scoring and collisions. ๐ฎball.py
: TheBall
class defines the behavior of the ball in the game. It controls the ball's movement, collisions, and speed. ๐paddle.py
: ThePaddle
class defines the behavior of the paddles in the game. It handles paddle movement and positioning. ๐score.py
: TheScore
class manages and displays the scores for both players on the screen. ๐
- Right Paddle: Up arrow (โฌ๏ธ), Down arrow (โฌ๏ธ)
- Left Paddle: 'W' ('W'), 'S' ('S')
- The game continues until you decide to exit it. ๐ช
- Each time the ball passes a paddle and reaches the screen's edge, the opposing player scores a point. ๐
- The first player to reach a predefined score limit wins. ๐ฅ
Feel free to modify the game, add new features, or improve upon it as you see fit. Have fun playing and learning from this project! ๐คฉ๐พ๐