An open API service indexing awesome lists of open source software.

https://github.com/whoiscipher/tetris

Imersive Tetris Game built using c++ and raylib. Makefile added for automated build
https://github.com/whoiscipher/tetris

cpp game-development makefile raylib raylib-cpp tetris tetris-clone

Last synced: 3 months ago
JSON representation

Imersive Tetris Game built using c++ and raylib. Makefile added for automated build

Awesome Lists containing this project

README

        

# Tetris Game

A classic Tetris game built with C++ and raylib.

![Tetris Title](assets/Tetris%20Game%20Title%20Cover.png)

![GameScreenShot](assets/TetrisGameSS.png)

## Features

- Classic Tetris gameplay
- Score tracking
- Game over screen
- Sound effects

# Tetrominoes

The game has 7 different tetrominoes that each have a distinct color. Each tetromino appears once every cycle and randomly each time

![Tetriminos](assets/tetrominos/tetrominoes.png)

## Installation

### Windows

**Download and run the setup:**
Download the game installer from [this link](TetrisSetup.exe) and run the setup to install the game.

### Linux

1. **Clone the repository:**
```sh
git clone https://github.com/WhoisCipher/Tetris.git
cd Tetris
```

2. **Install raylib:**
Ensure raylib is installed on your device. Visit the [raylib installation guide](https://github.com/raysan5/raylib) for detailed instructions.

3. **Build the project:**
```sh
make
```

4. **Run the game:**
```sh
./tetris
```

### macOS

1. **Clone the repository:**
```sh
git clone https://github.com/WhoisCipher/Tetris.git
cd Tetris
```

2. **Install raylib:**
Make sure raylib is installed on your device. Follow the [raylib installation guide](https://github.com/raysan5/raylib) for macOS-specific instructions.

3. **Build the project:**
```sh
make
```

4. **Run the game:**
```sh
./tetris
```

# Controls
- Left Arrow: Move piece left
- Right Arrow: Move piece right
- Up Arrow: Rotate piece
- Down Arrow: Speed up piece
- Space: Drop piece

## Contact ✉️

For any questions or feedback, please reach out to me at [[email protected]](mailto:[email protected]).