C implementation of a simple tetris game. It was written as an exercise (and for fun). My goals were to explore modern C and to learn the basics of clean C code in a "large" project.
Building the game requires C99, cmake
, and SDL (both SDL2 and SDL2_ttf).
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
$ ./tetris
You may use -DCMAKE_BUILD_TYPE=Debug
instead if you want to print debug information.
This project was heavily inspired from InvertedMinds video showing the thought process behind a C++ tetris implementation. His code can be found here.