The Raylib library has to be installed and added to the system $PATH.
For Debian/Ubuntu
$ sudo apt install git build-essential cmake libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev
$ git clone https://github.com/raysan5/raylib.git
$ cd raylib
$ cmake -S . -B build
$ sudo cmake --build build --config Release --target install
For ArchLinux:
$ sudo pacman -Syu
$ sudo pacman -S raylib
For other operating system see the raylib website
$ cd src
$ g++ main.cpp player.cpp TextureManager.cpp window.cpp flair.cpp game.cpp -lraylib -o main -O2 -Werror -Wall -lm
$ ./main
$ mkdir build && cd build
$ cmake ..
$ make
$ ./game
GNU General Public License