A simple Tetris clone built with C++ and raylib.
- Classic Tetris gameplay
- Custom colors and fonts
- Sound effects and background music
- High score tracking (saved in
highscore.txt) - Mute/unmute button for music
- raylib (C++ bindings)
- C++14 compatible compiler (e.g., g++, clang++)
- w64devkit (for Windows, as configured in
.vscode)
- Install raylib and w64devkit.
- Open the project in Visual Studio Code.
- Press
Ctrl+Shift+Band selectbuild debugorbuild release.
# Example for Windows with MinGW
g++ src/*.cpp -o main.exe -I<raylib_include_path> -L<raylib_lib_path> -lraylib -lopengl32 -lgdi32 -lwinmm- Run the built executable (
main.exeon Windows). - Use arrow keys to move and rotate blocks.
- Press the mute button to toggle music.
- High scores are saved in
highscore.txt.
src/- Source codeFont/- Custom fontSounds/- Sound effects and musichighscore.txt- High score storage.vscode/- VS Code configuration
- raylib for graphics and audio
- Font: monogram.ttf
- Sound effects: in
Sounds/