Update new_col.c
This commit is contained in:
@@ -38,3 +38,14 @@ int new_brick () {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// rotate (cycle) tiles in brick by 1
|
||||||
|
int rotate_col (void)
|
||||||
|
{
|
||||||
|
int temp;
|
||||||
|
temp = tile_current[0];
|
||||||
|
tile_current[0] = tile_current[1];
|
||||||
|
tile_current[1] = tile_current[2];
|
||||||
|
tile_current[2] = temp;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user