tetris rotation
Posted
by Samuel
on Stack Overflow
See other posts from Stack Overflow
or by Samuel
Published on 2010-04-20T17:27:35Z
Indexed on
2010/04/21
1:43 UTC
Read the original article
Hit count: 460
Hey,
For university we're supposed to write a game (the language is modula2 little chance you know it). Each tetromino is defined through a central piece and 3 relative pieces, Now when it comes to rotation i just rotate the relative blocks (linear algebra).
What i am asking myself is how to handle the rotations a user does when the piece has already "landed" because than the user has a little time left to move his pieve quickly into the desired position but in tetris versions all over the web you can "rotate over" other pieces, but i dont seem to get it with my rotation.
Over what piece do i need to rotate? are there guidelines? Thanks
© Stack Overflow or respective owner