samtay / tetris

A terminal interface for Tetris
Other
871 stars 40 forks source link

Add counterclockwise rotation #29

Closed siers closed 1 month ago

siers commented 11 months ago

Add counterclockwise rotation

The default rotation is now clockwise¹. In the help widget, it now says: RotateR with k/↑, RotateL with g.

1 - both tetris.com and tetris.fandom.com/wiki/Tetris_Guideline use cw rotation for up

siers commented 11 months ago

Removed rotation of Is, because the horizontal orientations were horizontally displaced by a single pixel, which is wrong and that would require more elaborate of a fix (either moving origin, rotation code with edge cases or a static list of rotation coords).