Skip to content

DemS98/ncurses-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncurses-tetris

Tetris implementation with Ncurses library.

Required dependencies

  • 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

Compile the binary

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

Play

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

Known limitations

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.

About

Tetris implementation with Ncurses library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published