Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beng49/tetris
https://github.com/beng49/tetris
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/beng49/tetris
- Owner: BenG49
- License: mit
- Created: 2021-04-30T02:00:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T01:24:59.000Z (over 3 years ago)
- Last Synced: 2023-03-10T09:48:25.927Z (almost 2 years ago)
- Language: C++
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tetris
![tetris](images/tetris.png "tetris")
## Run
1. Install SFML and C++
2. Run `g++ -c main.cpp`
3. Run `g++ -o main -lsfml-graphics -lsfml-window -lsfml-system`
4. Execute using `./main`## Controls
Key(s) | Function
--- | ---
A / Left | Move left
D / Right | Move right
W / Up / X | Rotate clockwise
Z | Rotate counterclockwise
Space | Hard drop
S / Down | Soft drop
C | Hold piece
Esc / P | Pause