Update column.c

This commit is contained in:
Jason Bou-Samra
2024-09-07 20:41:25 +10:00
committed by GitHub
parent 455c86b55b
commit 63c29ee0c5
+2 -6
View File
@@ -15,8 +15,6 @@
* ******************/
int tile_current[3] = {1, 2, 3};
int tile_next[3] = {5, 5, 5};
int mask[2] = {360, 372};
int spr_y[6] = {0, 11, 22, 33, 44, 55};
int colcnt[8] = {0, 0, 0, 0, 0, 0, 0, 0}; // number of empty spaces in each column
//////////////////////////////// GAME BOARD ARRAY //////////////////////////
@@ -76,8 +74,6 @@ colcnt[i] = 0;
}
}
//////////////////////////////// NEW COLUMN //////////////////////////
// randomly choose from remaining available columns to drop next brick into
int new_column(void) {
@@ -116,8 +112,8 @@ int new_column(void) {
// generate random 3 tile bricks for current and preview
int new_brick(void) {
for (int i = 0; i < 3; i++) {
tile_current[i] = randombytes_uniform(5) + 1; // brick in play
tile_next[i] = randombytes_uniform(5) + 1; // next brick preview
tile_current[i] = randombytes_uniform(6) + 1; // brick in play
tile_next[i] = randombytes_uniform(6) + 1; // next brick preview
}
return 0;
}