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.
- Basic Tetris gameplay mechanics
- Collision detection
- Score tracking
- Next and saved piece preview
- Game over detection and restart
To compile and run this project, you need to have the following installed:
- GCC compiler
- Raylib library
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
].
After compilation, you can start the game using:
make run
Or directly:
./main
- Arrow keys for moving the pieces.
- Space to save a piece for later.
- Enter to restart the game after a game over.
The game's settings can be adjusted in the [main.c
] file, including screen size, block size, and colors.
This project is open-source and available under the MIT License.
- Raylib library for providing a simple and easy-to-use platform for game development.