Tetris

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

snowman_hater
New Member
Posts: 19
Joined: Mon 01 Jan, 2007 12:17 pm
Location: Ticalc, Obsessing over Stats

Post 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.
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

very ingenious. very ingenious indeed
snowman_hater
New Member
Posts: 19
Joined: Mon 01 Jan, 2007 12:17 pm
Location: Ticalc, Obsessing over Stats

Post 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.
Post Reply