A Tetris clone written in C. Most of the features from modern Tetris games are implemented except for combos and special effects/nice graphics.
- Make sure you have dependencies
SDL2
andSDL2_ttf
git clone https://github.com/andwn/sdl2-tetris.git sdl2-tetris
cd sdl2-tetris
make
- Arrow left/right - Move left/right
- Arrow down - Soft Drop
- Space - Hard Drop
- Z - Rotate left (counter clockwise)
- X, Arrow up - Rotate right (clockwise)
- Shift - Hold
- Enter - Pause