Skip to content

rahulc0dy/pong-game-with-raylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game with Raylib

A simple Pong game implemented in C++ using the raylib library.

Features

  • Classic Pong gameplay
  • Smooth, frame-rate-independent movement
  • Ball bounces off screen edges
  • FPS display

Screenshots

Menu Screen Menu

Game Screen Game

Menu Screen Game Over

Requirements

  • C++ compiler (e.g., g++, clang++)
  • CMake (for building the project)

Build and Run

1. Clone the repository

git clone https://github.com/rahulc0dy/pong-game-with-raylib.git
cd pong-game-with-raylib

2. Build the project

mkdir build
cd build
cmake ..
cmake --build .

3. Run the game

./pong-game-with-raylib

On Windows, the executable may be named pong-game-with-raylib.exe.

Controls

  • Use the keyboard to control paddles
  • Watch the ball bounce and try to keep it in play!

Notes

  • Raylib is included as a dependency [ Windows only ]
  • If you are on Linux or macOS, you may need to install raylib separately. Download it from the raylib website and follow the installation instructions for your platform.

Enjoy playing Pong!

About

A ping-pong game made with C++ and Raylib

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors