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.
- Host: GitHub
- URL: https://github.com/chris-cozy/cozypong
- Owner: chris-cozy
- Created: 2023-02-22T19:55:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T17:08:20.000Z (over 1 year ago)
- Last Synced: 2025-01-29T22:44:27.862Z (3 months ago)
- Topics: pong, pygame, python
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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/)**.