Skip to content

Latest commit

 

History

History
72 lines (61 loc) · 2.26 KB

README.md

File metadata and controls

72 lines (61 loc) · 2.26 KB

pyPong

Atari's arcade classic resurrected in python with some additional gameplay options.

Table of Contents

Description:

pyPong is a two-player Pong game built using the pygame library. It features basic paddle movement, ball collision detection, score tracking, and powerups. This was built as a code along project following the YouTube video Pong with Python & Pygame – Tutorial from freeCodeCamp.org

All sound effects for the game were sourced from https://soundbible.com/ and all credit for the sound effects goes to their respective creators. Direct links to the sound effects used are listed below:

Features:

  • Two-player Pong game
  • Paddle movement using 'W'/'S' (Player 1) and arrow keys (Player 2)
  • Ball collision detection
  • Score tracking for both players
  • Powerup system with smash and flash powerups
  • Sound effects for ball collision, smash powerup, and flash powerup
  • Random ball direction and angle on score
  • Responsive UI with real-time updates

System-Requirements

  • Python 3.6 or higher
  • pygame library

Installation:

  1. Clone the repository:
   git clone https://github.com/brando5393/pyPong.git
  1. Navigate to the project directory:
   cd pyPong
  1. Install the required dependencies:
   pip install pygame

Usage:

  1. Run the game:
   python main.py
  1. Play the game using the controls mentioned below.

  2. The game window will display the player scores, powerup counts, and the Pong gameplay.

Controls:

  • Player 1 (Left Paddle):

    • Move Up: 'W' key
    • Move Down: 'S' key
    • Smash Powerup: 'D' key
    • Flash Powerup: 'A' key
  • Player 2 (Right Paddle):

    • Move Up: Up Arrow
    • Move Down: Down Arrow
    • Smash Powerup: Right Arrow
    • Flash Powerup: Left Arrow

License:

This project is licensed under the MIT License.