A simple Tetris clone written in C++ using the SDL2 library.
You'll need gcc
and make
for compiling, as well as the SDL2 and SDL2_ttf libraries.
On Ubuntu, SDL2 and SDL2_ttf can be installed with apt
:
sudo apt install libsdl2-2.0-0 libsdl2-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev
Alternatively, you can just install from source (see the links above for details).
In the root directory of the repository, run
cmake -B./build && cd build
make -j$(nproc)
To install tetris
to /usr/local/bin
, run sudo make install
from the build
directory.