Tetris

Description

This tutorial taught me how to make a 2D game using sprites. On the left, you can see the finished product from the tutorial. After I finished the tutorial, I decided to theme it after the game Portal. To do this, I made the background a picture of Companion Cubes, the Tetris blocks Companion Cubes, and the sides of the "game-board" the traditional blue and orange from Portal. I also added in one piece of functionality that wasn't there before, which was a counter that told you how many lines you cleared. Unfortunately, being that this was when I was first starting to code, it didn't work well with clearing multiple lines in one turn. In that case, it would only increment the counter by one.


Tetris 1
Tetris 2