This project uses CMake(>= 3.25) to build, and requires a relatively modern C++ compiler (at least supports C++ 11). The project also depends on SDL2, make sure it's presented on your system and CMake can find it.
git clone https://github.com/gshen42/Pong
cd Pong
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
If built successfully, an executable pong
would be present in the build
directory.
- Move your mouse to control the racket.
- Quit the game by pressing
q
.