Tetris implementation with Ncurses library.
- g++
- libncurses-dev
- When compiling with sound support:
- libasound2-dev
- libopusfile-dev
Example Debian installation:
sudo apt install g++ libasound2-dev libopusfile-dev libncurses-dev
Just run make
.
To remove intermediate object files, make clean
Tetris theme will be embedded inside the binary
To compile without sound: make no_sound
Game is played with the keyboard:
Key | Action |
---|---|
↑ | Rotate block |
→ | Move block to right |
← | Move block to left |
↓ | Speed up block fall (can be held down for more speed) |
+ | Increase music volume (bugged) |
- | Decrease music volume (bugged) |
↲ | Close when game over |
CTRL + C | Force close the game |
This was just a fun project to experiment with C++ so there could be some bugs.
For now, the only known bug is relative to the music volume actions: when the volume is changed for the first time since starting the game, it's muted; then the + and - keys work as expected.