Game Development Reference
In-Depth Information
1x1 block continually fall
Figure 11.3
A first step towards a Tetrisgame.
a unit left or right. The player shouldn't be able to move the block once it's
finished falling and neither should they be able to move the block outside of the
playing area. Tetris has no end game, it's one of those classic era games where you
can never win but only hope to delay your inevitable failure. There is no explicit
win state to model but one of the major goals in Tetris is to get a complete row of
bricks. Your program should detect completed rows and remove the row. Any
blocks above the row should drop down a level. This is also a good point to
introduce a scoring system and display the player's score on screen.
The next step is to make the Tetris pieces, which are called tetrominoes; I would
suggest designing them so they are a collection of the smaller 1x1 blocks that
have been used in the earlier stage. The user must be able to rotate these te-
trominoes but rather than try to rotate all the sprites 90 around the center of the
Search WWH ::




Custom Search