lilo
10-23-2008, 06:40 AM
Hello everyone I'm new here and I've been reading the TetrisWiki here recently.
I'm trying to implement a simple Tetris clone according the Tetris Guideline but I get stucked on writing the Wall Kick/Floor Kick algorithm.
I used a simple one that on clockwise rotation try to move the tetromino on step left,if failed try to move one step right.If both of them failed check if floor kick is necessary and then move the tetromino one step up.
This works fine with easy T-Spins and wallkicks and floorkicks are just fine.
But I figured it can't do complex twists that listed in the Wiki Twists page.
Can somebody share the secret of the SRS rotation system here.
I'd appreciate very much...
and sorry for my poor english...
I'm trying to implement a simple Tetris clone according the Tetris Guideline but I get stucked on writing the Wall Kick/Floor Kick algorithm.
I used a simple one that on clockwise rotation try to move the tetromino on step left,if failed try to move one step right.If both of them failed check if floor kick is necessary and then move the tetromino one step up.
This works fine with easy T-Spins and wallkicks and floorkicks are just fine.
But I figured it can't do complex twists that listed in the Wiki Twists page.
Can somebody share the secret of the SRS rotation system here.
I'd appreciate very much...
and sorry for my poor english...