Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 1.64 KB

README.md

File metadata and controls

29 lines (25 loc) · 1.64 KB

Python-Two-Player-Pong-Game

Welcome to the Pong Game! This is a classic arcade-style game implemented in Python using the Turtle graphics library. Players control paddles to hit a bouncing ball and score points. The first player to reach a designated score wins the game.

Game Mechanics

  • The ball will bounce off the top and bottom walls.
  • Players can move their paddles up and down to hit the ball.
  • If a player fails to hit the ball, the other player scores a point.
  • The game continues until you manually exit.

File Descriptions

  • 1. ball.py: Defines the Ball class, which handles the ball's movement, bouncing, and reset position logic.
  • 2. paddle.py: Contains the Paddle class, which defines paddle behavior and movement.
  • 3. scoreboard.py: Implements the Scoreboard class for displaying and updating the scores.
  • 4. main.py: The main game loop, which initializes the game window, sets up the paddles, ball, and scoreboard, and contains the game logic.

Controls

  • Right Paddle:
    • Up: Up Arrow
    • Down: Down Arrow
  • Left Paddle:
    • Up: W
    • Down: S

Features

  • Two-player gameplay
  • Simple and intuitive controls
  • Score tracking for both players
  • Responsive ball movement and bouncing mechanics
  • Adjustable game speed