Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PyPong is a classic Pong game built using Python (library: Pygame). Players can enjoy single-player mode against "AI" or multiplayer mode with two players. The goal is to hit the ball with paddles and score points by getting the ball past the opponent. The game includes retro graphics, sound effects, dynamic gameplay and an extreme endless mode.

License

Notifications You must be signed in to change notification settings

gabrielelobosco/PyPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPong - A Simple Pong Game

PyPong is a classic Pong game developed using Python and Pygame. The game features both single-player and multiplayer modes, as well as a simple AI opponent. Players use paddles to hit a ball back and forth and try to score points by getting the ball past the opponent. The game features retro-style pixel graphics and sound effects, creating a nostalgic arcade experience.

Features

  • Single-player mode: Play against the "AI".
  • Multiplayer mode: Play against another player.
  • Endless mode: Play a game against the "AI" without any limitation to its movements.
  • Sound effects: Enjoy various sound effects for scoring, ball hits, and game events.
  • Retro graphics: Classic pixelated art style.

Screenshots

Game Screenshot

Game Screenshot

Installation

To run the game locally, you need to have Python and Pygame installed.

git clone https://github.com/gabrielelobosco/PyPong.git
cd PyPong
pip install -r requirements.txt
python pypong.py

Alternatively, you can download the latest release (Windows only) and run the executable directly.

Gameplay Instructions

Use Up and Down arrow keys to select your preferred mode

1 Player Mode: Use the W and S keys to move the left paddle up and down. The AI will control the right one.

2 Players Mode: Player 1 uses W and S to move their paddle, while Player 2 uses the Up and Down arrow keys to move.

Endless Mode: Use the W and S keys and try to win against an extreme version of the "AI"

Pause the game: Press Esc to pause the game.

Resume the game: Press Esc again to unpause or Space to continue after scoring.

Customization

You can modify the game by changing the paddle size, ball speed, or winning score by editing the corresponding variables in the pypong.py file. -- Coming Soon: In-Game Options --

License

This project is licensed under the GNU License

Credits

PongBlipF4.wav by NoiseCollector -- https://freesound.org/s/4359/ -- License: Attribution 3.0

8 bit arpeggio 001 minor 120 bpm pulse1 030 F3.wav by josefpres -- https://freesound.org/s/664076/ -- License: Creative Commons 0

Videogame Menu Select by Fupicat -- https://freesound.org/s/471937/ -- License: Creative Commons 0

Short Explosion 1 by AceOfSpadesProduc100 -- https://freesound.org/s/334266/ -- License: Attribution 4.0

Contributors

About

PyPong is a classic Pong game built using Python (library: Pygame). Players can enjoy single-player mode against "AI" or multiplayer mode with two players. The goal is to hit the ball with paddles and score points by getting the ball past the opponent. The game includes retro graphics, sound effects, dynamic gameplay and an extreme endless mode.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages