Posted: Sat 10 Mar, 2007 12:01 am
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.