Update new_col.c

This commit is contained in:
Jason Bou-Samra
2024-07-26 17:54:39 +10:00
committed by GitHub
parent 72100e5294
commit 69d0389972
+11
View File
@@ -38,3 +38,14 @@ int new_brick () {
}
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;
}