An open API service indexing awesome lists of open source software.

https://github.com/amirsinarz/tetris

Classic tetris game developed using c++ and the SDL2 lib
https://github.com/amirsinarz/tetris

cpp game sdl2 tetris

Last synced: about 2 months ago
JSON representation

Classic tetris game developed using c++ and the SDL2 lib

Awesome Lists containing this project

README

          

# Tetris Game

This is a classic Tetris game developed using C++ and the SDL2 library.

### Prerequisites

Make sure you have the following installed on your machine:

- C++ Compiler (e.g., g++, clang++)
- SDL2 library + ttf

Compile the project:
```
Ctrl + Shift + B
```
*(Adjust the command based on your file structure and setup)*

Run the game:
```bash
./Tetris
```

## Controls

- **Left Arrow**: Move left
- **Right Arrow**: Move right
- **Down Arrow**: Move down
- **Up Arrow**: Rotate Tetromino
- **Esc**: Close the game

## Demo
![image](https://raw.githubusercontent.com/AmirSinaRZ/Tetris/refs/heads/main/Recording%202024-11-05%20164044.gif)