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
- Host: GitHub
- URL: https://github.com/amirsinarz/tetris
- Owner: AmirSinaRZ
- Created: 2024-11-05T13:19:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T14:12:20.000Z (over 1 year ago)
- Last Synced: 2025-07-10T23:57:14.380Z (12 months ago)
- Topics: cpp, game, sdl2, tetris
- Language: C
- Homepage:
- Size: 40.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
