This is a simple emulation of the classic Pong game implemented in Python using the Turtle graphics library. The game features two paddles and a ball, and the objective is to bounce the ball back and forth between the paddles without letting it pass.
- Control the right paddle using the 'Up' and 'Down' arrow keys.
- Control the left paddle using the 'W' and 'S' keys.
- The ball bounces off the walls and paddles.
- If the ball passes the right paddle, the left player scores a point.
- If the ball passes the left paddle, the right player scores a point.
- The game continues indefinitely until manually exited.
This game utilizes the Turtle graphics library, which is a standard Python library for simple graphics. No additional dependencies are required.
Object-oriented design with classes for Ball, Paddle, and Scoreboard. Paddle movement using arrow keys and 'W'/'S' keys. Scoring system with a dynamic scoreboard. Game loop to handle ball movement and collisions. Adjustable game speed. Feel free to explore and modify the code to enhance or customize the game further!
Note: Ensure that you have Python and the Turtle graphics library installed to run the game.
This code is a basic implementation and can be expanded for additional features and improvements. Enjoy playing Pong!
Simply run the provided script:
python pong_game.py