Rotating Tetris Piece

BlitzMax Forums/BlitzMax Beginners Area/Rotating Tetris Piece

OK OK OK

I'm trying to replicate this, specifically the rotation code in the 4th yellow box.

http://www.codeproject.com/csharp/tetriscontrol.asp

It's not specifically to save memory, it's just I think this way is more elegant, and also I could have pieces of any shape or size I wanted without having to presize any arrays.

Also I want the pieces to be rotated automatically from just one set piece, so users can design their own pieces without bother.