A ping pong game clone. Created using SDL.
git
, make
, gcc
, cmake
gcc should be installed by default on Fedora (but if for some reason it isn't...)
-
$ sudo dnf install git $ sudo dnf install gcc $ sudo dnf install make $ sudo dnf install cmake
-
$ sudo pacman -S git $ sudo pacman -S gcc $ sudo pacman -S make $ sudo pacman -S cmake
SDL2
, SDL_mixer
, SDL_ttf
, SDL_image
-
$ sudo dnf install SDL2_image-devel $ sudo dnf install SDL2_ttf-devel $ sudo dnf install SDL2_mixer-devel $ sudo dnf install SDL2-devel
-
$ sudo pacman -S sdl2 $ sudo pacman -S sdl2_image $ sudo pacman -S sdl2_ttf $ sudo pacman -S sdl2_mixer
-
For windows download the appropriate development libraries for your MinGW compiler.
$ https://www.libsdl.org/download-2.0.php $ https://www.libsdl.org/projects/SDL_image/ $ https://www.libsdl.org/projects/SDL_ttf/ $ https://www.libsdl.org/projects/SDL_ttf/
$ git clone https://github.com/zenitopires/pingpong.git
$ cd PingPong
$ mkdir build
$ cmake -S . -B build
$ cd build
$ make
$ ./PingPong
$ git clone https://github.com/zenitopires/pingpong.git
$ cd PingPong
$ mkdir build
$ cmake -G "MinGW Makefiles" -S . -B build
$ cd build
$ mingw32-make.exe
$ .\PingPong