Welcome!
This repository contains the source code for my Tetris remake in C++ using the SFML software development library. I mainly created this project to practice my C++ coding. If you wish, you can use, modify, and distribute this code according to the terms of the license provided.
- Standard Tetris rules
- Random block generation
- Game music and action audio
- Score board
- Next Tetris block board
- Rotate Tetris Block : Up-Arrow (↑)
- Move Tetris Block Left : Left-Arrow (←)
- Move Tetris Block Right: Right-Arrow (→)
- Move Tetris Block Down : Down-Arrow(↓)
- Restart Game : R-key
- C++20
- C++ Compiler(e.g. GCC or Clang)
- SFML library
- CMake (if using Makefile)
- Clone this repository to local storage
- If using clang C++ compiler and on Linux OS, simply execute
make run
on the command line from the root directroy of the repository. - If using another compiler (e.g. GCC), update the
Makefile
CXX to your compiler command and then runmake run
. - Game should launch automatically
- You will have to manually compile the project based on your chosen compiler.
This project is licensed under the MIT License.
- Game Over Music by den_yes under CC0 1.0 Universal license.
- Block Rotation Sound by qubodup under CC0 1.0 Universal license.
- Game Played Font by Chequered Ink.
- Clear Row Sound by Brandon Morris under CC0 1.0 Universal license.
- Game Icons by qubodup under CC BY 3.0 DEED license.