Skip to content

vsamarth/tetris.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

The most fun game ever, implemented in C using raylib.

Getting Started

If you're running macOS, you can download the game from here, and run the executable in the bin directory.

You can also build the game from source using cmake, which currently builds the dependecies from source.

From the root directory of this repository, just run

make run

and enjoy! 🎉

Controls

If you are new to Tetris, the wikipedia page provides a nice introduction to the game.

Move Left: Left or A

Move Right: Right or D

Rotate: Up or W

Soft Drop: Down or S

Hard Drop: Space

Demo

Here's a demo of probably the worst Tetris run ever, by my 4 year old cousin.

License

This project is MIT Licensed.