NXTetris
|
Cross-platform, over-engineered XTetris written in C
KB_RIGHT
- ConfirmKB_LEFT
- Exit / BackKB_UP
, KB_DOWN
- Menu navigationKB_LEFT
, KB_RIGHT
- Rotate the tetrominoKB_UP
, KB_DOWN
- Change tetrominoMOUSE_X
- Position the tetromino in the x-axisMOUSE_LEFT
- Drop the current tetromino in the boardRequirements:
Building the program is done by running the following commands:
The output executable will be named nxtetris
and will be placed in build/release
.
NOTE: The binary needs to be shipped with the resources
folder _(which is copied to the build directory at
compile time)_ in order to work properly. _(without it the audio won't play)_
Due to ncurses limitations, on Windows MinGW is required to compile the program.
You can use the following command to generate the Makefile for MinGW:
All the libraries are managed by vcpkg and are automatically obtained during the build process.
NOTE: The first build will take a while since all the libraries need to be downloaded and built.