SFML community forums

General => SFML projects => Topic started by: Powereleven on July 07, 2018, 06:07:12 pm

Title: Tetris Clone :P
Post by: Powereleven on July 07, 2018, 06:07:12 pm
Hi forums :)
I decided to make a Tetris Clone, because it is considered a beginner project and I had never tried to do it. I know there are hundreds of Tetris Clones out there, so I made mine a bit different. Every piece has a square as its bounding box (rectangles would mess up the rotations) and they are read from a Pieces.txt file. So I can set pieces in this format:

0 1 0
0 1 0
0 1 0

1 1 1
0 1 0
0 1 0

1 1
1 1

In which the piece must be a square.
I know it's not optimized because I didn't worry about it, since Tetris is by itself a very light game.

Source:
https://github.com/Powereleven/Tetris-Clone

Feedback would be nice :)
Title: Re: Tetris Clone :P
Post by: verdog on July 11, 2018, 08:38:47 pm
Nice!! I like the custom pieces.