A Simple and Minimalistic Tetris Clone (Powered by raylib)
Letris is an open-source Tetris clone developed in C++ using raylib and nlohmann/json. It features a simple and minimalistic design, aiming to capture the essence of the classic game with modern touches.
- Minimalistic Design: A clean and straightforward user interface.
- Cross-Platform: Compatible with multiple operating systems.
- Customizable Settings: Adjust game settings to your preference.
- High Score Tracking: Keep track of your best scores.
To download the latest Windows version, click here.
- Download Letris-Windows-amd64.zip from the latest release and unzip it.
- Run the executable (letris.exe) inside the folder.
- Download the installer (letris-amd64-Windows.exe).
- Follow the on-screen instructions to install the game.
To download the latest version for Ubuntu/Debian, click here and download 'letris.deb'.
Simply run the .deb file and follow the installation instructions. The package is compatible with GLIBC_2.27 and higher (was compiled in Ubuntu 18.04 LTS).
To download it, click here and download 'Letris-amd64-Linux.tar.gz'.
After that untar it with
tar -xvf Letris-amd64-Linux.tar.gz
and simply run the installation script in the directory with:
cd Letris-amd64-Linux/
./install.sh
The binary is compatible with GLIBC_2.27 and higher (was compiled in Ubuntu 18.04 LTS).
If you can't install the .deb version and the .tar.gz version you can also compile the code yourself. You'll need a relatively recent version of CMake, which can be downloaded here or found in your distribution's package manager.
You will need to install some build tools, such as GCC, Make, Git and CMake
For Ubuntu/Debian, you can run:
sudo apt install build-essential git cmake
For Fedora you can run
sudo dnf install -y gcc gcc-c++ make git cmake
For Arch Linux you can run
sudo pacman -S git base-devel cmake
Some libraries are required by raylib for displaying graphics and audio correctly (ALSA, OpenGL/Mesa and X11)
For Ubuntu/Debian you can run:
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
For Fedora you can run:
sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic
For Arch Linux you can run:
sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama
Once the dependencies are installed, follow these steps to build the game:
git clone https://github.com/8enrich/Letris.git # Clone the repository
cd Letris # Enter the repository
cmake -S . -B build # Configure the project with CMake
cd build # Change to the build directory
make # Build the game binary
./letris # Run the game
Feel free to customize further, but this should make it more structured and clear!
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or support, please open an issue on the GitHub repository. .