PraddyumnYadav / pong-pygame

Building Pong Game with Pygame.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pong-pygame

  • Building Pong Game with Pygame.
  • A simple implementation of the classic Pong game using Python and Pygame.

Table of Contents

Introduction

This Pong Game is a basic implementation built with Python and Pygame. It features a simple player-versus-computer mode where the player can control one of the paddles, and the computer controls the other. The objective is to score points by bouncing the ball past the opponent's paddle.

Features

  • Classic Pong gameplay.
  • Player versus computer mode.
  • Responsive paddle controls.
  • Ball reflection off the paddles.
  • Simple and easy-to-understand code.

Requirements

  • Python 3.x
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/PraddyumnYadav/pong-pygame.git
  2. Navigate to the project directory:

    cd pong-pygame
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the main Python script to start the Pong Game:

python main.py

The game window will appear, and you can control your paddle using the arrow keys. Try to score points by bouncing the ball past the computer-controlled paddle.

Controls

  • Up Arrow: Move your paddle up.
  • Down Arrow: Move your paddle down.

Thank You

  • Your Contributions are Welcome.

About

Building Pong Game with Pygame.


Languages

Language:Python 100.0%