tetris

๐ŸŽฎ Tetris ๐Ÿš€

This project is a classic implementation of the popular game Tetris, written in C++ using the SDL2 library. Tetris is a puzzle game where players manipulate falling blocks called โ€œtetrominosโ€ to create complete lines on the game board. When a line is completed, it clears from the board, and the player earns points. The game ends when the stack of tetrominos reaches the top of the game board.

The main objective of this project is to provide a fun and interactive way to play the timeless game of Tetris, while also serving as a practical example of using the SDL2 library for game development in C++.

๐ŸŽฎ Try it online! ๐ŸŒ

Features

Requirements

How to Play

  1. Compile the Game:
make all
  1. Run the Game:
./bin/tetris
  1. Controls:
    • Left Arrow: Move tetromino left
    • Right Arrow: Move tetromino right
    • Down Arrow: Soft drop tetromino
    • Up Arrow or Space: Rotate tetromino
    • P: Pause the game
    • Esc: Quit the game
  2. Gameplay:
    • Tetrominos will fall from the top of the screen. Move and rotate them to fit into the empty spaces.
    • Complete lines by filling all cells in a row. Cleared lines will give you points and prevent the stack from reaching the top.
    • The game speeds up as you clear more lines and progress to higher levels.

Developer

Edimar Calebe Castanho (Calebe94)

License

This project is licensed under the GNU General Public License v3.0 or later.