Demo Video: https://youtu.be/-TnrBlE4O6Q
The binaries I have made so far are for Linux and Windows machines; I haven’t tried to build them on macOS. Just go to the latest release link and download the installer or archive file for your operating system.
Download the Latest Release: https://github.com/zEuS0390/cpp-sfml-pong-game/releases/latest
You can build the game from the source using the CMake tool, so make sure you have it installed. I designed it to allow you to easily build it on your own machine. The game was created with the SFML library, but since it's already defined in the CMake configuration file, you don’t need to handle it manually.
If you are using Linux, make sure that the following dependencies are present on your system; otherwise, it will not work properly:
- libfreetype6-dev
- libx11-dev
- libxrandr-dev
- libudev-dev
- libgl1-mesa-dev
- libflac-dev
- libsndfile1-dev
- libvorbis-dev
- libvorbisenc2
- libvorbisfile3
- libopenal-dev
- libpthread-stubs0-dev
- libjpeg8-dev
- libxcursor-dev
Note: Make sure you have Git installed, as it will be used by CMake to download SFML.
Follow these steps:
- Open a terminal and navigate to the root directory of the project.
- Create an empty directory:
mkdir build/
. - Generate the build system files in it:
cmake -S . -B build/
. - Build the project:
cmake --build build/
. - Finally, navigate to the
build/bin
directory and run the game.