/* There are 7 different blocks, and when we create a new one ** to fall from the top, it can be any of these. */ void create_block(block *p) { switch(random(7)) { case 0: p->t=square; break; case 1: p->t=horizontal_long; break; case 2: p->t=stair1; break; case 3: p->t=stair3; break; case 4: p->t=T_up; break; case 5: p->t=L1_down; break; case 6: p->t=L2_down; break; } place_block(p, SCREEN_WIDTH/2,2); }