Skip to content

The-Ping-Pong-Game: A classic arcade-style game created using the Raylib library and C++. Control paddles to hit a ball back and forth, aiming to score points by getting the ball past your opponent's paddle. Features simple controls and vibrant graphics.

Notifications You must be signed in to change notification settings

MohHasan1/The-Ping-Pong-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Ping Pong Game

The Ping Pong Game is a classic arcade-style game created using the Raylib library and C++. It features an AI opponent for single-player mode and a local multiplayer mode for playing with friends.

Description

I created this project after my 2nd semester, using my C and C++ knowledge gained during that semester. I used the Raylib library to implement an AI and created a file management system for storing scores, demonstrating my understanding of core and complex C++ concepts.

I have also created a reusable library using Raylib called "Button" that can be reused in any Raylib project.

Note: I didn't know how to use Git when I made this project about 8 months ago, so I added it recently.

Features

  • Single Player Mode: Play against a challenging AI opponent.
  • Multiplayer Mode: Play with friends on the same device.
  • Customizable Settings: Adjust game settings such as paddle speed and ball speed.
  • High Score Tracking: Keep track of your best scores in both single-player and multiplayer modes, stored in an old school file management system acting as a database management system (DBMS).

Screenshots

Gameplay Screenshot Gameplay Screenshot Settings Screenshot

Getting Started

To quickly start playing The Ping Pong Game, follow these steps:

  1. Clone the repository:
    Clone the repository to your local machine.

  2. Run the game:
    You don't need to install the Raylib library. I have included the necessary .a file and other requied settings in the repository.

    • Run make all to build the game.
    • Run ./game to start playing.

Usage

  1. Game Controls:
    • Use the arrow keys and/or WASD keys to control the paddle.
  2. Game Modes:
    • Select the game mode (single player, multiplayer or play against A.I.) from the main menu.
  3. Enjoy the Game:
    • Have fun playing The Ping Pong Game!

About

The-Ping-Pong-Game: A classic arcade-style game created using the Raylib library and C++. Control paddles to hit a ball back and forth, aiming to score points by getting the ball past your opponent's paddle. Features simple controls and vibrant graphics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published