Skip to content

licktheroom/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tetris

A tetris game made in C with SDL2. Mostly made for practice. Also so I can play tetris for free.

Press Esc to close the game.

I do not own Tetris nor any of it's assets. All rights reserved to The Tetris Company LLC. The code on the other hand, is mine.

Installation

You must have GCC and the SDL library installed.

Linux

gcc -o tetris tetris.c -lSDL2 -lSDL2_image

Double click the tetris file or run ./tetris in the directory it's in.

Windows

Being worked on. I'll likely make the executable myself for the bigger updates, so it wouldn't always be up to date.

Mac

I don't own a Mac so have fun.

Use

The left arrow goes left, the right arrow goes right, and the only way to rotate is the up arrow.

Contributing

I am still learning, so if you plan on adding something or optimizing code I would be thankful if you explained why your way is better.

This project is under the GNU GPLv3 license.

About

a tetris game made in C with SDL2

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages