/pong-pygame

Pong made using python with pygame library

Primary LanguagePythonMIT LicenseMIT

Pong Game using Pygame

Introduction

This project implements the classic Pong game using Python and the Pygame library. Pong is a simple 2D sports game that simulates table tennis. Players control paddles and try to hit a ball back and forth across the screen. The goal is to score points by making the opponent miss the ball.

Screenshots

Gameplay1

Gameplay2

Requirements

  • Python 3.x
  • Pygame library

Installation

  1. Install Python: If you haven't already, download and install Python from the official website.

  2. Install Pygame:

pip install pygame

Usage

  1. Clone the repository or download the source code.

  2. Navigate to the project directory.

  3. Run the following command:

python main.py
  1. Enjoy playing Pong!

Controls

How to play?

Player Keys Moviment
One W Up
One S Down
Two Up arrow Up
Two Down arrow Down

Features

  • Two-player mode: Play against a friend.
  • Simple controls: Control paddles using keyboard keys.
  • Classic gameplay: Experience the nostalgia of the original Pong game.

Acknowledgements

This project was created using the Pygame library, which provides an easy-to-use framework for game development in Python.

Credits

License

This project is licensed under the MIT License.