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

https://github.com/amirabdollahi/pingpong-2d

PingPong 2D is a lightweight and fun 2D table tennis game built with C#. It offers a nostalgic two-player experience and includes a basic AI for solo matches. Designed as a simple desktop application, it's perfect for practicing game development fundamentals like collision detection, keyboard input handling, and UI rendering in Windows Forms.
https://github.com/amirabdollahi/pingpong-2d

2d-game ai-game csharp game-development pingpong-game

Last synced: 6 months ago
JSON representation

PingPong 2D is a lightweight and fun 2D table tennis game built with C#. It offers a nostalgic two-player experience and includes a basic AI for solo matches. Designed as a simple desktop application, it's perfect for practicing game development fundamentals like collision detection, keyboard input handling, and UI rendering in Windows Forms.

Awesome Lists containing this project

README

          

# PingPong 2D

A simple 2D Ping Pong game developed in C#.

## Features

- Classic two-player Ping Pong gameplay
- Basic AI opponent (for single-player mode)
- Score tracking
- Keyboard controls for both players

## Screenshots

![image](https://github.com/user-attachments/assets/30fa3b10-d085-4983-bacf-63acda991d1f)

![image](https://github.com/user-attachments/assets/d3062a0b-6996-4fe7-8d80-f67f34caf520)

![image](https://github.com/user-attachments/assets/a8a23aa3-a50e-41b6-8c8d-a87ec3ad6cfe)

## Getting Started

### Prerequisites

- Windows OS
- Visual Studio 2019 or later
- .NET Framework 4.8

### Installation

1. Clone the repository:

```bash
git clone https://github.com/AmirAbdollahi/pingpong-2d.git
```

2. Open the `PingPong2D.sln` file in Visual Studio.

3. Build and run the project.

## Controls

- Player 1: `W` (up), `S` (down)
- Player 2: `↑` (up), `↓` (down)

Great idea! Adding a **"Future Features"** section gives contributors a clear roadmap of what they can work on. Here's how you can write it:

---

### Future Features

The following features are planned for future development. Contributions are welcome!

- **Improved AI**
Make the AI smarter and more adaptive based on the player's performance.

- **Sound Effects and Music**
Add paddle hit sounds, background music, and scoring sound effects.

- **Power-Ups**
Introduce random power-ups like speed boost, paddle shrink/grow, or double score.

- **Scoreboard UI Improvements**
Enhance the visual appearance of the score display.

- **High Score Tracking**
Store and display the highest scores achieved across sessions.

- **Multiplayer Over LAN/Internet**
Allow remote two-player mode over a network.

---

Would you like me to append this to your full README as a final version?

## Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

## License

This project is licensed under the MIT License.