No description
  • C 98%
  • Makefile 2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
juancabe dc8c30a75f ok
2024-07-03 19:33:49 +02:00
.vscode Eliminate dependencies 2024-05-08 00:05:35 +02:00
LICENSE.md license 2024-07-03 19:31:53 +02:00
main README 2024-07-03 19:31:12 +02:00
main.c README 2024-07-03 19:31:12 +02:00
makefile Eliminate dependencies 2024-05-08 00:05:35 +02:00
README.md ok 2024-07-03 19:33:49 +02:00

Tetris Clone

This project is a simple Tetris clone written in C using the Raylib library for graphics rendering. It's designed to run on desktop platforms.

Features

  • Basic Tetris gameplay mechanics
  • Collision detection
  • Score tracking
  • Next and saved piece preview
  • Game over detection and restart

Prerequisites

To compile and run this project, you need to have the following installed:

  • GCC compiler
  • Raylib library

Compilation

The project includes a Makefile for easy compilation. Use the following commands:

make main

This will compile the source code into an executable named [main].

Running the Game

After compilation, you can start the game using:

make run

Or directly:

./main

Controls

  • Arrow keys for moving the pieces.
  • Space to save a piece for later.
  • Enter to restart the game after a game over.

Configuration

The game's settings can be adjusted in the [main.c] file, including screen size, block size, and colors.

License

This project is open-source and available under the MIT License.

Acknowledgments

  • Raylib library for providing a simple and easy-to-use platform for game development.