Skip to content

LuisValrod/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

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.

How to Play

  • Control the right paddle using the 'Up' and 'Down' arrow keys.
  • Control the left paddle using the 'W' and 'S' keys.

Game Rules

  • 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.

Dependencies

This game utilizes the Turtle graphics library, which is a standard Python library for simple graphics. No additional dependencies are required.

Features

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.

Acknowledgments

This code is a basic implementation and can be expanded for additional features and improvements. Enjoy playing Pong!

Running the Game

Simply run the provided script:

python pong_game.py



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages