My take on Tetris written in C++ using SDL3
WIP, Game is not currently playable
This project uses cmake and therefore depends on cmake 3.16+ to be installed by the user,
A Cmake generator like Visual Studio, make or ninja is required,
A C++ Compiler like g++, clang or Visual C++ is required,
Arch Linux:
sudo pacman -Sy cmake make g++
Debian based Linux:
sudo apt install cmake make g++
Fedora Linux:
sudo dnf install cmake make g++
Clone the Repo:
git clone https://github.com/SyntaxError2505/tetris.git && cd tetris
Clone SDL3 into the Repo:
git clone https://github.com/libsdl-org/SDL.git ./third-party/SDL
Sdl requires some Dependencies. Cmake may stop on an error with a link to a list of required libraries.
Build with Cmake:
mkdir build && cd build
cmake ..
cmake --build .