Tetris
Moderator: MaxCoderz Staff
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
DigiTan: well, basically, yeah, a 4x4 tilemap, with only 2 tiles: blocks (1) and spaces (0). So to check for collision on a particular action (moving or rotating), it simulates action, and sees if the outcome contains any 2's, if so, this means that there is collision and the action is invalid, and it then returns, without performing the action. If it doesn't receive any 2's, then it knows the action is okay.
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats