A pong clone written in C++ using SFML
This originaly was a project to learn networking, however I've decided to add more features to it and make a better game.
Current features:
- Main menu (with an AI game in the background)
- Singleplayer and Multiplayer modes
- Singleplayer opponent AI
Planned features:
- Currently connecting to the server requires typing into the console, I want this to be GUI based
- Player will be able choose whether to host a server on their own machine, or join another player's server
- AI will hopefully become more realistic and have diffuculty levels
This has not been tested or built for Windows. I will be working on a simple way to build with Windows, this will probably be with an SFML submodule. If anyone can find a way to work nice with Windows, please submit a PR.
First be sure to have SFML libraries installed on your system
For linux (Ubuntu/Debian): sudo apt install libsfml-dev
For MacOS (Homebrew): brew install sfml
Then clone the project: git clone --recurse-submodules [email protected]:slinky55/Pong-Cpp.git
- Build
cd PongClient &&
mkdir build-debug &&
cmake -B build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build-debug
- Run!
./build-debug/Pong
- Build
cd PongServer-Cpp &&
mkdir build-debug &&
cmake -B build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build-debug
- Run!
cd build-debug && ./PongServer