Skip to content

leotamminen/PingPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ping Pong Game - Version 2.0

A simple Python-based ping pong game using the Turtle graphics library. Made as a code-along project when first learning Python. Trying to change values and testing, added scoreboard. The game features a black background with white objects, and the "ball" is represented by a square. Please note that there may be issues with the audio file "bounce.wav," so make sure it is in the same directory as the Python (.py) file.

How to Play

  • Use the "W" and "S" keys to move the left paddle up and down, respectively.
  • Use the "Up" and "Down" arrow keys to move the right paddle up and down, respectively.

Game Rules

  • The ball bounces off the walls and paddles.
  • Scoring occurs when the ball crosses the left or right boundaries.
  • The score is displayed at the top of the window, with "Pelaaja 1" representing the left player and "Pelaaja 2" representing the right player.

Dependencies

  • Python 3.x
  • Turtle graphics library

Running the Game

  1. Ensure you have Python installed on your system.
  2. Download the Python file (PingPong2.0.py) and the audio file (bounce.wav).
  3. Place both files in the same directory.
  4. Run the Python file to start the game.

Controls

  • Player 1 (Left paddle): "W" to move up, "S" to move down.
  • Player 2 (Right paddle): "Up" arrow to move up, "Down" arrow to move down.

Enjoy playing Ping Pong 2.0!

About

A simple code-along made Ping Pong game when first learning Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages