Play-With-Python/Pong Game at main · aayushsinha0706/Play-With-Python · GitHub
Skip to content

Latest commit

 

History

History
 
 

Pong Game

Folders and files

PONG GAME

GOAL
This is pong game created in python programming language using pygame.

DESCRIPTION
Pong is one of the first computer games that was ever created, this simple "tennis-like" game features two paddles and a ball, the goal is to defeat your opponent by being the first one to gain 10 points, and a player gets a point once the opponent misses a ball.

The game can be played with two human players Left Player can use W, S keys to move the paddle While Right player can use up arrow, down arrow keys to move the paddle

To play this game download pong.py..

You also need to have pygame installed in your computer. Learn how to install pygame from here

Open and run the file pong.py without making any modifications to it to ensure that everything is set up correctly. By "open and run" I mean do the following:

  • Go to your IDE. From the File menu, choose "Open".
  • Find the file pong.py and choose it.
  • The template pong.py file should now be open. Run the file and enjoy the game :-D

WHAT I HAD DONE
In this game, I implemented two classes for paddle and ball and also functions like handle_collision and handle_paddle_movement that will start up and carry out an interactive pong game.

DEMONSTRATION
Screenshot 2022-12-08 at 7.51.46 AM

Screenshot 2022-12-08 at 7.56.42 AM

I wish you enjoy the classic pong game. :-D

AAYUSH SINHA