A fast-paced, cross-platform Pong clone built with C++ and Raylib. Featuring increasing ball velocity and smooth paddle physics.
The game is a classic 2-player local match. First one to miss the ball gives a point to the opponent!
| Action | Player 1 (Left) | Player 2 (Right) |
|---|---|---|
| Move Up | W |
Up Arrow |
| Move Down | S |
Down Arrow |
| Launch Ball | Space |
Space |
You can find pre-compiled executables for Windows and Linux in the Releases section.
- Windows: Download
Pong-Win.exeand run. No installation required! - Linux: Download
Pong-Linux, give it execute permissions (chmod +x Pong-Linux), and run.
- Language: C++17
- Library: Raylib
- Build System: GitHub Actions (Automated Cross-Platform Builds)
- OS: Developed on EndeavourOS (Arch Linux)
If you want to compile it yourself:
- Install dependencies:
sudo pacman -S raylib mesa-utils - Compile:
g++ src/main.cpp -o Pong -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 - Run:
./Pong
The easiest way is to use the provided GitHub Actions workflow or a C++ compiler with Raylib installed via vcpkg.