Skip to content

A graphical Tetris game made in C++ using SFML Graphics Library

License

Notifications You must be signed in to change notification settings

blueork/Tetris-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris-CPP

A graphical Tetris Game 🎮 🚀 made in C++ using SFML Graphics Library

Instructions on how to run the game

NOTE: The following commands are to be run on Terminal

  1. Ensure that you have the GNU G++ Compiler, if not run the following command

    sudo apt-get install g++

  2. Ensure that you have the SFML Library, if not run the following command

    sudo apt-get install libsfml-dev1

  3. Compile the game

    g++ -c main.cpp

  4. Link with the SFML Library

    g++ main.o -o sfml-app -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system

  5. Launch the game by

    ./sfml-app

  6. 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.

Releases

No releases published

Packages

No packages published