https://github.com/fosskers/tetris
A 3D Tetris game using OpenGL in C.
https://github.com/fosskers/tetris
3d-tetris c game tetris
Last synced: 4 months ago
JSON representation
A 3D Tetris game using OpenGL in C.
- Host: GitHub
- URL: https://github.com/fosskers/tetris
- Owner: fosskers
- License: gpl-2.0
- Created: 2015-03-06T06:59:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T18:26:56.000Z (over 5 years ago)
- Last Synced: 2025-01-17T20:40:55.606Z (over 1 year ago)
- Topics: 3d-tetris, c, game, tetris
- Language: C
- Homepage:
- Size: 165 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 3D Tetris

Whoa! It's 3D!
## Cloning
This project uses a Git submodule to one of my helper libraries, so please clone
via:
```bash
git clone --recursive-submodules https://github.com/fosskers/tetris
```
## Compilation
### On Arch
```bash
sudo pacman -S clang cmake glew glfw
cmake .
make
```
### On Ubuntu
```bash
sudo apt-get install libglfw3-dev libglew-dev clang cmake
cmake .
make
```
**Note:** `libglfw3-dev` is not available in Trusty's repositories. You can
either build it from source, grab it from Utopic's repos or install it from
Keith Winstein's PPA:
```bash
sudo add-apt-repository ppa:keithw/glfw3
```
## Usage
LEFT - Move the block left.
RIGHT - Move the block right.
DOWN - Move the block down faster.
UP - Spin the block.
R - Reset the game.
C - Reset the camera.
## Camera Control
Use WASD to fly through Camera Space. Your mouse changes the camera angle.
If things get crazy, press `c` to reset the camera.