All pastes #246628 Raw Edit

Clooth

public c v1 · immutable
#246628 ·published 2006-11-12 13:11 UTC
rendered paste body
/* delete_row() removes a full row from the game screen and** drops the rows above.*/void delete_row(int row){     int i,j;     for(j=row; j>1; j--)                for(i=1; i<=SCREEN_WIDTH; i++)                {                         stuck[i][j]=stuck[i][j-1];                         gotoxy(i*2+SCREEN_POSITION,j);                         if(stuck[i][j])                         {                             putch(BLOCK_CHARACTER);                             putch(BLOCK_CHARACTER);                         }                         else                         {                             putch(EMPTY_CHARACTER);                             putch(EMPTY_CHARACTER);                         }                }     points+=10;}