Skip to content

Daksh0027/TetrisP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tetris (Raylib C++)

A simple Tetris clone built with C++ and raylib.

Features

  • Classic Tetris gameplay
  • Custom colors and fonts
  • Sound effects and background music
  • High score tracking (saved in highscore.txt)
  • Mute/unmute button for music

Requirements

  • raylib (C++ bindings)
  • C++14 compatible compiler (e.g., g++, clang++)
  • w64devkit (for Windows, as configured in .vscode)

Building

Windows (VS Code)

  1. Install raylib and w64devkit.
  2. Open the project in Visual Studio Code.
  3. Press Ctrl+Shift+B and select build debug or build release.

Manual Build

# Example for Windows with MinGW
g++ src/*.cpp -o main.exe -I<raylib_include_path> -L<raylib_lib_path> -lraylib -lopengl32 -lgdi32 -lwinmm

Running

  • Run the built executable (main.exe on Windows).
  • Use arrow keys to move and rotate blocks.
  • Press the mute button to toggle music.
  • High scores are saved in highscore.txt.

File Structure

  • src/ - Source code
  • Font/ - Custom font
  • Sounds/ - Sound effects and music
  • highscore.txt - High score storage
  • .vscode/ - VS Code configuration

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors