Skip to content

This repository contains the source code for my Tetris remake in C++ using the SFML software development library.

License

Notifications You must be signed in to change notification settings

r-karunathilake/Tetris_Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris C++


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.

Main Tetris game window.

Features

  • Standard Tetris rules
  • Random block generation
  • Game music and action audio
  • Score board
  • Next Tetris block board

Controls

  • 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

Dependencies

  • C++20
  • C++ Compiler(e.g. GCC or Clang)
  • SFML library
  • CMake (if using Makefile)

Building and Running

Linux

  1. Clone this repository to local storage
  2. If using clang C++ compiler and on Linux OS, simply execute make run on the command line from the root directroy of the repository.
  3. If using another compiler (e.g. GCC), update the Makefile CXX to your compiler command and then run make run.
  4. Game should launch automatically

Other Operating Systems

  1. You will have to manually compile the project based on your chosen compiler.

License

This project is licensed under the MIT License.

References

  1. Game Over Music by den_yes under CC0 1.0 Universal license.
  2. Block Rotation Sound by qubodup under CC0 1.0 Universal license.
  3. Game Played Font by Chequered Ink.
  4. Clear Row Sound by Brandon Morris under CC0 1.0 Universal license.
  5. Game Icons by qubodup under CC BY 3.0 DEED license.

About

This repository contains the source code for my Tetris remake in C++ using the SFML software development library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published