Update column.c

This commit is contained in:
Jason Bou-Samra
2024-08-16 20:36:27 +10:00
committed by GitHub
parent 96fadf473c
commit a7046f2e43
+5 -8
View File
@@ -11,8 +11,8 @@
* orange = 5 * * orange = 5 *
* cyan = 6 * * cyan = 6 *
* ******************/ * ******************/
int tile_current[3] = {0}; int tile_current[3] = {1, 2, 3};
int tile_next[3] = {0}; int tile_next[3] = {5, 5, 5};
int mask[2] = {360, 372}; int mask[2] = {360, 372};
int spr_y[6] = {0, 11, 22, 33, 44, 55}; int spr_y[6] = {0, 11, 22, 33, 44, 55};
@@ -111,8 +111,7 @@ int new_column(void) {
//////////////////////////////// ROTATE COLUMN ////////////////////////// //////////////////////////////// ROTATE COLUMN //////////////////////////
// rotate (cycle) tiles in brick by 1 // rotate (cycle) tiles in brick by 1
int rotate_col (void) int rotate_col (void) {
{
int temp = tile_current[0]; int temp = tile_current[0];
tile_current[0] = tile_current[1]; tile_current[0] = tile_current[1];
tile_current[1] = tile_current[2]; tile_current[1] = tile_current[2];
@@ -122,14 +121,12 @@ int rotate_col (void)
//////////////////////////////// MOVE HORIZONTALLY ////////////////////////// //////////////////////////////// MOVE HORIZONTALLY //////////////////////////
// move brick left & right using cursor keys // move brick left & right using cursor keys
int move_horiz (void) int move_horiz (void) {
{
return 0; return 0;
} }
//////////////////////////////// MOVE VERTICALLY////////////////////////// //////////////////////////////// MOVE VERTICALLY//////////////////////////
// move brick down one place at a time // move brick down one place at a time
int move_down (void) int move_down (void) {
{
return 0; return 0;
} }