Simple C++ implementation of Tetris.
Runs in the terminal with a UI in ncurses
.
- Gravity
- Move left and right
- Soft drop
- Hard drop
- Basic rotation
- Wall and floor Kicks
- Full lines deletion
- Game Over
- Piece preview
- Score system
- Levels
- Piece colors
- Random Generator (7 bag)
- Hold
- Ghost piece
libncurses5-dev
andlibncursesw5-dev
(for ncurses support)meson
,ninja-build
(for build system)
- Clone the repository:
git clone https://github.com/NickSkier/TetroGAC.git
- Enter the cloned directory:
cd TetroGAC
- Configure the build system with Meson:
meson setup build
- Compile the project:
cd build && ninja
- Run the game:
./build/src/tetrogac
- Exit the game using
q
orCtrl-C
.
- KEY_LEFT/KEY_RIGHT: Move block left/right
- KEY_DOWN: Soft drop
- Space: Hard drop
- KEY_UP: Rotate cloclwise
- E: Rotate counterclockwise
- Q: Quit game