https://github.com/rahulc0dy/pong-game-with-raylib
A ping-pong game made with C++ and Raylib
https://github.com/rahulc0dy/pong-game-with-raylib
cpp opengl raylib windows
Last synced: 3 months ago
JSON representation
A ping-pong game made with C++ and Raylib
- Host: GitHub
- URL: https://github.com/rahulc0dy/pong-game-with-raylib
- Owner: rahulc0dy
- Created: 2025-06-17T14:57:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-31T10:50:40.000Z (12 months ago)
- Last Synced: 2025-07-31T14:21:00.173Z (11 months ago)
- Topics: cpp, opengl, raylib, windows
- Language: C++
- Homepage:
- Size: 3.93 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pong Game with Raylib
A simple Pong game implemented in C++ using the [raylib](https://www.raylib.com/) library.
## Features
- Classic Pong gameplay
- Smooth, frame-rate-independent movement
- Ball bounces off screen edges
- FPS display
## Screenshots
Menu Screen

Game Screen

Menu Screen

## Requirements
- C++ compiler (e.g., g++, clang++)
- CMake (for building the project)
## Build and Run
### 1. Clone the repository
```sh
git clone https://github.com/rahulc0dy/pong-game-with-raylib.git
cd pong-game-with-raylib
```
### 2. Build the project
```sh
mkdir build
cd build
cmake ..
cmake --build .
```
### 3. Run the game
```sh
./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](https://www.raylib.com/) and follow the installation instructions for your platform.
---
Enjoy playing Pong!