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.
- Host: GitHub
- URL: https://github.com/amirabdollahi/pingpong-2d
- Owner: AmirAbdollahi
- Created: 2025-04-13T07:58:21.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-04-14T13:41:32.000Z (6 months ago)
- Last Synced: 2025-04-15T15:16:25.088Z (6 months ago)
- Topics: 2d-game, ai-game, csharp, game-development, pingpong-game
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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



## 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.