Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 2.61 KB

README.md

File metadata and controls

58 lines (34 loc) · 2.61 KB

Plasmo Notion

Horizon

Our project is a Ping Pong game created using the Python programming language and two popular libraries, namely Pygame and Tkinter. The objective of the game is to hit the ball back and forth across the table using a paddle, with the aim of making your opponent miss and score points. The game can be played in single-player mode against the computer, or in two-player mode with a friend.

The game features a user-friendly interface with simple graphics and sound effects that add to the overall gaming experience. The game also includes a scoreboard that keeps track of the score and displays the winner at the end of each round.

Overall, this Ping Pong game is an exciting and engaging project that showcases the use of two popular libraries, Tkinter and Pygame, to create a fun and interactive gaming experience. Whether you're a seasoned player or a beginner, this game will provide you with hours of entertainment and enjoyment.

Team members

  1. Irfan Rasheed [https://github.com/irfanrasheedkc]
  2. Jayakanth Arun [https://github.com/JAYAKANTHARUN]
  3. Abhiram Krishna [https://github.com/Abhiramks2003]

Link to product walkthrough

SHN_Horizon.mp4

How it Works ?

  1. The game starts with a welcome screen that prompts the user to choose the Game mode(vs CPU or vs player).

  2. Once the user has selected the Game mode, the game screen appears. The game screen consists of a rectangular play area with two paddles, one for each player, and a ball in the center.

  3. The players use the arrow keys on their keyboard to move their paddles up and down, trying to hit the ball back and forth between them.

  4. When the ball collides with one of the paddles, it changes direction and bounces back into the play area.

  5. If the ball goes past one of the paddles, the player whose paddle it went past loses a point.

  6. The game continues until one of the players reaches a predetermined score.

  7. At the end of the game, the winner is announced, and the players can choose to play again or exit the game.

Libraries used

  • tkinter
  • PIL==9.4.0
  • pygame==2.1.2

How to configure

Instructions for setting up project

git clone https://github.com/irfanrasheedkc/Pygame_Horizon
cd Pygame_Horizon
pip install requirements.txt

How to Run

Instructions for running

1.execute the file pingpong.py

2.On the Menu,select the mode,CPU or 2 Player.

3.Then click on 'START GAME' to start the game.

4.Click on 'QUIT GAME' to exit.