Skip to content

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.

Notifications You must be signed in to change notification settings

amirabdev/pingpong-2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

image

image

Getting Started

Prerequisites

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

Installation

  1. Clone the repository:

    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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages