Welcome to the Tetris game project built with Raylib! This project is a classic Tetris game implemented using the Raylib library for graphics and game development. Enjoy the nostalgic gameplay of Tetris with a modern touch.
Fatimaa Khan (CT-23024), Rania Imran (CT-23005), Musfirah Waseem (CT-23014), Amna Adnan (CT-23020)
To run this Tetris game on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/tetris-raylib.git
-
Navigate to the project directory:
cd tetris-raylib
-
Install dependencies:
Make sure you have Raylib installed on your system. You can follow the installation instructions for Raylib here.
-
Build and run the game:
On Linux or macOS:
make ./tetris
On Windows:
mingw32-make tetris.exe
The objective of Tetris is to manipulate the falling tetrominoes to create horizontal lines of blocks without any gaps. When a line is completed, it disappears, and the blocks above it move down. The game ends when the stack of tetrominoes reaches the top of the playing field.
- Classic Tetris gameplay
- Modern graphics with Raylib
- Score tracking
- Responsive controls
- Left Arrow: Move tetromino left
- Right Arrow: Move tetromino right
- Down Arrow: Hard drop
- Up Arrow: Rotate tetromino
- Left Arrow (after the game ends): Restarting the game
- Raylib - A simple and easy-to-use library to enjoy videogames programming.
- Tetris concept and design originally by Alexey Pajitnov.
- Dr Murk Marvi (Lecturer at NEDUET, Karachi) for her guidance and valuable feedback throughout the project.
email: fatimazherk@gmail.com
Enjoy playing Tetris!