Tuesday, January 23, 2007

Tetris Diagram

1. Environment where the game will be played, which is usually a rectangular space.
2. The square/tiles needed to play the game.
3. Arrays to hold the squares/tiles (to create the patterns), 2 dimensional arrays that hold one’s and zero’s
4. Variables, width, height, state of the game, bricks, hit, score, level, etc
5. Functions to start game
6. Code to make the squares/tiles to come down
7. Hit test, to figure out when the squares/tiles have hit the ground
8. Code to make the row that has been completed to be removed
9. Move left and right functions, to move the squares/tiles around
10. Change state function, to get the squares/tiles to rotate
11. Controls - Key up, Key down, Key Left, Key Right
12. Codes for leveling up, scoring and game over.