1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
int lBlock[4][4][3] = //assigns the xy positions of four blocks, 10 is green
{{{x-1,y,10},{x,y,10},{x+1,y,10},{x+1,y+1,10}},//stateL = 0 default position ™™|
{{x,y-1,10},{x,y,10},{x,y+1,10},{x-1,y+1,10}},//stateL = 1
{{x+1,y,10},{x,y,10},{x-1,y,10},{x-1,y-1,10}},//stateL = 2
{{x,y+1,10},{x,y,10},{x,y-1,10},{x+1,y-1,10}}};//stateL = 3
//different type
unsigned int tBlock[4][4][3] = //assigns the xy positions of four blocks, 10 is green
{{{x-1,y,10},{x,y,10},{x+1,y,10},{x+1,y+1,10}},//stateL = 0 default position ™™|
{{x,y-1,10},{x,y,10},{x,y+1,10},{x-1,y+1,10}},//stateL = 1
{{x+1,y,10},{x,y,10},{x-1,y,10},{x-1,y-1,10}},//stateL = 2
{{x,y+1,10},{x,y,10},{x,y-1,10},{x+1,y-1,10}}};//stateL = 3
short zBlock[4][4][3] = //assigns the xy positions of four blocks, 10 is green
{{{x-1,y,10},{x,y,10},{x+1,y,10},{x+1,y+1,10}},//stateL = 0 default position ™™|
{{x,y-1,10},{x,y,10},{x,y+1,10},{x-1,y+1,10}},//stateL = 1
{{x+1,y,10},{x,y,10},{x-1,y,10},{x-1,y-1,10}},//stateL = 2
{{x,y+1,10},{x,y,10},{x,y-1,10},{x+1,y-1,10}}};//stateL = 3
|