Skip to content

Classic Pong is written in pygame in a pixelated, 1-bit style. Has basic sound effects and the ability to restart the game

License

Notifications You must be signed in to change notification settings

VladyslavStolbov/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong

Classic Pong is a nostalgic and minimalistic take on the iconic Pong game, implemented in Pygame with a pixelated 1-bit style. The game features basic sound effects, easy controls, and the ability to restart for endless fun.

Features

  • Pixelated 1-bit Style: Experience the classic Pong game with a charming pixelated aesthetic.

  • Basic Sound Effects: Enjoy simple yet satisfying sound effects that enhance the gaming experience.

  • Simple Controls: Navigate the paddles effortlessly with easy-to-use controls.

  • Game Restarts: Restart the game at any time for continuous fun without interruptions.

Demo

pong_demp.mp4

Screenshots

Screenshot from 2023-12-23 05-29-47 Screenshot from 2023-12-23 05-35-56 Screenshot from 2023-12-23 05-30-51

MVP (Minimum Viable Product)

  • Keyboard Movements: Use the keyboard controls to move the paddles.
  • Basic Ball Collision: Experience realistic ball collisions with the paddles and boundaries.
  • Score Tracking: Keep track of each player's score throughout the game.
  • Game Win/Lose Conditions: Determine the game's end conditions based on scores.
  • Basic Sound Effects: Add sound effects to key game events for an immersive experience.
  • Start By Clicking Space Button: Begin the game by clicking the space button, ensuring a smooth start.
  • Sprites Class: Utilize the Sprites class for managing game elements efficiently.

Additional Features (if MVP is met)

  • Start Menu: Implement a start menu for a more polished and user-friendly experience.
  • End Menu: Create an end menu to provide players with a clear conclusion to each game.
  • Controls for Vim Geeks: Cater to Vim enthusiasts by incorporating controls such as 'k' (up) and 'j' (down).

Controls

  • Player:

    • Move Up: W, Key Up, K
    • Move Down: S, Key Down, J
  • General controls:

    • Quit: Esc
    • Start/Restart: Space

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/VladyslavStolbov/pong
  2. Navigate to the project folder:

    cd pong/
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  5. Install the required dependencies:

    pip install -r requirements.txt
  6. Run the code from the directory:

    python3 pong/

License

This project is licensed under the MIT License

About

Classic Pong is written in pygame in a pixelated, 1-bit style. Has basic sound effects and the ability to restart the game

Topics

Resources

License

Stars

Watchers

Forks

Languages