Rotating Tetris Piece

BlitzMax Forums/BlitzMax Beginners Area/Rotating Tetris Piece

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Then:
....
XXXX
....
....

.X..
.X..
.X..
.X..

....
XXXX
....
....

.X..
.X..
.X..
.X..


Note that the last two models are the same as the first two. You could supply a rotate-amount per rotated version. The 3rd and 4th version would have the same rotate angles as the first respective two.

...
XXX
.X.

.X.
.XX
.X.

.X.
XXX
...

.X.
XX.
.X.



.XX
.X.
.X.

...
XXX
..X

.X.
.X.
XX.

X..
XXX
...



With all these, you don't need a pivot.