A graphical Tetris Game 🎮 🚀 made in C++ using SFML Graphics Library
NOTE: The following commands are to be run on Terminal
-
Ensure that you have the GNU G++ Compiler, if not run the following command
sudo apt-get install g++
-
Ensure that you have the SFML Library, if not run the following command
sudo apt-get install libsfml-dev1
-
Compile the game
g++ -c main.cpp
-
Link with the SFML Library
g++ main.o -o sfml-app -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system
-
Launch the game by
./sfml-app
-
Enjoy the gameplay 🎮🚀!!
NOTE: The game currently has a bug in which even after exiting the game either via the close button or through in-game command, the music still runs in the background, thus, the game needs to be closed manually by Ctrl C
in the terminal.