All pastes #246623 Raw Edit

Clooth

public c v1 · immutable
#246623 ·published 2006-11-12 13:04 UTC
rendered paste body
/* 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);}