-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|569|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
Jayenkai
Created : 11 May 2016
Edited : 11 May 2016

Little Spinning Grid

Handy for Tetris!

I'm not 100% sure these will come in handy to anyone, but I just had to figure the bloomin' things out for the umpteenth time, and thought it might be a good idea to jot them down for a change!

Assuming your tiles are in an array of 4x4 blocks, where n=(y*4)+x, these are the grid placement values for the two main rotations.



Example usage (Blitz2D/3D/Plus)

 

Comments


Wednesday, 11 May 2016, 13:45
Pakz
I do not understand what happens in those relevant lines but for what it does it is useful.