Recreation of the NES Tetris game in C++ using the SFML graphics library.
The only nonstandard dependency is SFML, a graphics library for rendering in C++
The executable is built with g++ to a file named tetris
, via the make
command.
make clean
will clear any object and executable files lingering, as well as resetting the highscore and output image.
Once built, run the executable with ./tetris
.
Gameplay is relatively simple:
- The game starts at level 0, and increases once per 10 lines
- To increase the drop speed, hold the down arrow key
- To shift left or right, tap or hold the respective arrow key
- To rotate clockwise, press "z"
- To rotate counterclockwise, press "x"
- To exit the game, press "q"
If unsure about rules or gameplay, refer to the NES classis tetris manual
- Add title screen
- Add victory screen
- Add "lightning" effect when tetris is achieved
- Add configurable button presses
- Limit integer values to their maximum digit count
- Add sound effects