Skip to content
/ Letris Public

A Simple and Minimalistic Tetris Clone (Powered by raylib)

License

Notifications You must be signed in to change notification settings

8enrich/Letris

Repository files navigation

Letris Logo

A Simple and Minimalistic Tetris Clone (Powered by raylib)

Total Downloads Stars Commits License Build Status

Description

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.

Features

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

Installation

Windows

To download the latest Windows version, click here.

Running the game from the ZIP

  1. Download Letris-Windows-amd64.zip from the latest release and unzip it.
  2. Run the executable (letris.exe) inside the folder.

Running the game from the Installer

  1. Download the installer (letris-amd64-Windows.exe).
  2. Follow the on-screen instructions to install the game.

Linux

Installing the .deb Package

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

Installing the pre-compiled tar.gz

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

Compiling the Game

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.

Build tools

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

Required libraries

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!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries or support, please open an issue on the GitHub repository. .

About

A Simple and Minimalistic Tetris Clone (Powered by raylib)

Resources

License

Stars

Watchers

Forks

Packages

No packages published