https://github.com/andwn/sdl2-tetris
Tetris clone written in C
https://github.com/andwn/sdl2-tetris
c game sdl2
Last synced: 8 months ago
JSON representation
Tetris clone written in C
- Host: GitHub
- URL: https://github.com/andwn/sdl2-tetris
- Owner: andwn
- License: mit
- Created: 2014-07-18T00:38:24.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T00:32:04.000Z (over 10 years ago)
- Last Synced: 2025-04-20T18:39:17.222Z (about 1 year ago)
- Topics: c, game, sdl2
- Language: C
- Homepage:
- Size: 227 KB
- Stars: 20
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SDL2 Tetris
===========
A Tetris clone written in C. Most of the features from modern Tetris games
are implemented except for combos and special effects/nice graphics.
How to Build
------------
1. Make sure you have dependencies `SDL2` and `SDL2_ttf`
2. `git clone https://github.com/andwn/sdl2-tetris.git sdl2-tetris`
3. `cd sdl2-tetris`
4. `make`
Controls
--------
- 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