sudo apt-get install libsfml-dev # install the SFML lib.
git clone https://github.com/jsyqrt/games.git
cd games
cd 01\ Tetris/ # compile the first game as an example.
g++ -std=c++11 -c main.cpp # to compile.
g++ main.o -o main.exe -lsfml-graphics -lsfml-window -lsfml-system # to link.
keshav-aneja / games Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jsyqrt/games
16 games with c++ and SFML