douglasvinis / testris

A simple Tetris clone written in C which runs on text terminals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@note: This is one of my very early projects, when i was learning c,
and is not an example of good programming at all.

[Português Brasil]

Este e o Testris, um clone do famoso tetris criado por Alexey Pajitnov na
decada de 80 na Russia. 

Esse jogo busca ser simples e coerente com a primeira verção oficial
criada justamente na decada de 80 e que rodava sobre terminais de texto
simples.O objetivo do projeto é o aprendizado do criador já que existem outras 
verçoes livres bem mais completas e polidas por ai.

Esse projeto não vai usar nenhuma biblioteca externa somente as
bibliotecas padroẽs da linguagem c e bibliotecas de plataformas especificas
para algumas operações simples.

O jogo é simples o objetivo do jogador e empilhar uma peças que caem
aleatoriamente na tela de forma que as linhas horizontais completas sejam
formadas, com isso o jogador ganhará pontos, a linha será destruida e o resto
da pilha vai cair no espaço que foi liberado.A cada 10  linhas completas o level
do jogo vai subindo almentando assim a velocidade das peças que caem.O jogador
também pode rotacionar as peças no sentido horário.

Abaixo os blocos contém todas as peças e suas possiveis rotaçoẽs: 

[English]

This is Testris, a clone of the famous Tetris created by Alexey Pajitnov in
80's in Russia

This game is simple and coherent with the first oficial version of the game
which ran on a simple text terminal. The objective of the project is increase
the knowledge of the creator since has many of other free software projects like
this much more complete and polished.But is a game to be nicely played too,so,have fun.

these project do not use a external library, only C standard libraries and simple functions
from platform specific libraries for console terminals.  

The game is simple, the objective is pile pieces(7 on total) which fall randomly 
on screen with intuit of make horizontal complete rows for make points, when a
row is complete it will be destroy and above pieces will be fall on created black
space. For each 10 complete rows the level will be increased velocity of the
piece falling. The player can rotate the pieces on clockwise direction.

the blocks below contein all pieces and all rotation posibilities:

========I BLOCK======
00______    00000000
00______    ________
00______    ________
00______    ________

========Z BLOCK=======
0000____    __00____
__0000__    0000____
________    00______
________    ________

========S BLOCK=======
__0000__    00______
0000____    0000____
________    __00____
________    ________

========T BLOCK=======
__00____    00______	000000__    __00____
000000__    0000____	__00____    0000____
________    00______	________    __00____
________    ________	________    ________

========L BLOCK======
00______    000000__	0000____    ____00__
00______    00______	__00____    000000__
0000____    ________	__00____    ________
________    ________	________    ________

========J BLOCK======
__00____    00______	0000____    000000__
__00____    000000__	00______    ____00__
0000____    ________	00______    ________
________    ________	________    ________

========O BLOCK=======
0000____
0000____
________
________

About

A simple Tetris clone written in C which runs on text terminals.

License:GNU General Public License v3.0


Languages

Language:C 97.1%Language:Makefile 2.9%