harunsasmaz / jet-ris

A very simple tetris game built with SDL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tetris

A very simple tetris game built with SDL library. As the usual tetris game, 5 different types of pieces exists and the aim of the game is avoid making the board full of pieces. When the bottom row is filled, then it is deleted starting from bottom to up and deletes consecutive full rows. Also, you can see the next piece on the right of the screen

Dependencies

- SDL
- SDL_gfx

Install

- brew install sdl
- brew install sdl_gfx

Compile

- make

Gameplay

Z Rotate piece

X Drop piece

Left Move piece to left

Right Move piece to right

Down Move piece to down

Esc Quit game

Bonus

You can change the macros defined in the board.h and resize the game.

About

A very simple tetris game built with SDL


Languages

Language:C 96.3%Language:C++ 3.2%Language:CMake 0.4%Language:Makefile 0.1%