Tutorial Details
- Difficulty: Advanced
- Platform: Flash
- Language: AS3
- Software Used: FlashDevelop (Flash Pro, Flash Builder, FDT supported)
- Estimated Completion Time: 2 hours
Download Source Files
In today’s Active Premium tutorial we’ll be creating a variant of the classic Tetris game, explaining general game concepts as well as some specific to this genre.
This Premium Tutorial is Filled with Solid OOP Principles and a Whole Pile of Other Programming Concepts
Check out the final result below!
Introduction
Let’s start with a short history lesson for those who are not familiar with this game (even though I doubt that it’s an unknown game to anyone).
Tetris is a puzzle video game from the 80s in which pieces made out of four square units (or cells) fall down in a grid (or matrix) and you have to move and rotate them until they land so that you obtain horizontal lines of units without gaps.
The pieces in the game are called tetrominoes and are geometrical shapes composed of four squares. There are five unique tetrominoes; however in the Tetris game we use two more which are reflections of two pieces from the first five.
The game was designed and programmed by Alexey Pajitnov and released in 1984 and still remains a popular game although many variations of the game were created (but using the same concept).
To read more on Tetris game, Tetrominoes, and associated topics, you can read their wiki pages: Tetris and Tetromino.
Prerequisites
For this tutorial I’ll be using FlashDevelop (see a guide to installing and using that here) but you can use whatever software you like (Flash CS3+, Flash Builder, FDT). If you don’t like or you can’t get FlashDevelop for whatever reason I strongly recommend that you use something other than Flash because of the weak code editor it has and because we will only be writing classes and you’ll like the features that you find in a strong code editor. But if you’ll only be copying and pasting, Flash will do just fine.
Professional and Detailed Instructions Inside
Premium members can Log in and Download! Otherwise, Join Now! Below are some sample images from this tutorial.



Active Premium Membership
We run a Premium membership system which costs $19 a month which periodically gives members access to extra tutorials, like this one! You’ll also get access to Psd Premium, Vector Premium, Audio Premium, Net Premium, Ae Premium, Cg Premium and Photo Premium too. If you’re a Premium member, you can log in and download the tutorial. If you’re not a member, you can of course join today!
Also, don’t forget to follow @envatoactive on twitter and grab the Activetuts+ RSS Feed to stay up to date with the latest tutorials and articles.
-
daniele
-
David
-
Tyrone
-
http://romuhica-industry.com Romuhica
-
Franck
-
Bram

