An open API service indexing awesome lists of open source software.

https://github.com/chris-cozy/cozypong

CozyPong is a classic Pong game implemented using the Pygame library in Python. It's a retro arcade game where players control paddles to hit a ball back and forth, trying to score points against each other.
https://github.com/chris-cozy/cozypong

pong pygame python

Last synced: about 1 month ago
JSON representation

CozyPong is a classic Pong game implemented using the Pygame library in Python. It's a retro arcade game where players control paddles to hit a ball back and forth, trying to score points against each other.

Awesome Lists containing this project

README

        

# **CozyPong**

**CozyPong** is a classic Pong game implemented using the Pygame library in Python. It's a retro arcade game where players control paddles to hit a ball back and forth, trying to score points against each other.

## **Features**

- Retro-style gameplay inspired by the classic Pong arcade game.
- Player vs. AI mode, where you can challenge a computer-controlled opponent.
- Dynamic AI that predicts ball movement for more challenging gameplay.
- Angle-based ball reflection for realistic ball behavior upon collision.
- Enhanced user interface with title screen, pause functionality, and sound effects.
- Aesthetic paddle and ball colors to suit a relaxing style.
- Options to restart or quit the game upon reaching the score limit.

## **Installation**

1. Make sure you have Python 3.x installed on your system.
2. Install the Pygame library by running the following command:

```bash
pip install pygame
```

3. Clone or download the CozyPong repository.

## **How to Play**

1. Run the **`main.py`** script using Python:

```bash
python main.py
```

2. Play against the AI opponent and try to score points by hitting the ball past the opponent's paddle.

## **Controls**

- **`W`**: Move your paddle up
- **`S`**: Move your paddle down
- **`P`**: Pause the game
- **`Q`**: Quit the game (while in a menu)
- **`R`**: Restart the game after a win

## **Contributing**

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.

## **License**

This project is licensed under the **[MIT License](https://opensource.org/license/mit/)**.