Page 2 of 2

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

Posted: Sat 10 Mar, 2007 1:45 am
by Halifax
very ingenious. very ingenious indeed

Posted: Sun 11 Mar, 2007 5:12 am
by snowman_hater
erm, not really that ingenious, it's actually pretty space-consuming. The map is 216 bytes, so I could be more space-effiecient if i really felt like it. And to Floodkiller: It doesn't fall as fast now, i fixed that.