Skip to content

fatimazherk/Tetris-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Tetris Game Using Raylib

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.

Made By:

Fatimaa Khan (CT-23024), Rania Imran (CT-23005), Musfirah Waseem (CT-23014), Amna Adnan (CT-23020)

Tetris Image

Table of Contents

Installation

To run this Tetris game on your local machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/tetris-raylib.git
  2. Navigate to the project directory:

    cd tetris-raylib
  3. Install dependencies:

    Make sure you have Raylib installed on your system. You can follow the installation instructions for Raylib here.

  4. Build and run the game:

    On Linux or macOS:

    make
    ./tetris

    On Windows:

    mingw32-make
    tetris.exe

How to Play

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.

Features

  • Classic Tetris gameplay
  • Modern graphics with Raylib
  • Score tracking
  • Responsive controls

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

Acknowledgments

  • 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.

For Additional Inquiries:

email: fatimazherk@gmail.com

Enjoy playing Tetris!

About

Second Semester OOP Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%