From b14637cc99e5fbed179307e8448dd618be6e461d Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 28 Jan 2017 15:34:04 +1300 Subject: More misc tidying --- tetromino.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/tetromino.h b/tetromino.h index c0a33f0..e04bbff 100644 --- a/tetromino.h +++ b/tetromino.h @@ -1,19 +1,8 @@ #define TETROMINO_WIDTH 4 #define TETROMINO_HEIGHT 4 #define TETROMINO_AREA (TETROMINO_HEIGHT*TETROMINO_WIDTH) -/* -struct tetromino { - char name; - uint8_t r; - uint8_t g; - uint8_t b; - unsigned int width; - unsigned int height; - char data[4][16]; -};*/ -struct piece -{ +struct piece { struct colour *colour; char (*bitmap)[4][4]; int type; @@ -44,7 +33,6 @@ char tetromino_I[4][4][4] = { } }; - char tetromino_J[4][4][4] = { { {1,0,0,0}, @@ -69,7 +57,6 @@ char tetromino_J[4][4][4] = { } }; - char tetromino_L[4][4][4] = { { {0,0,1,0}, @@ -94,7 +81,6 @@ char tetromino_L[4][4][4] = { } }; - char tetromino_O[4][4][4]= { { {0,1,1,0}, @@ -119,7 +105,6 @@ char tetromino_O[4][4][4]= { } }; - char tetromino_S[4][4][4] = { { {0,1,1,0}, @@ -193,9 +178,6 @@ char tetromino_Z[4][4][4] = { } }; - - - char (*tetrominoes[])[4][4][4] = { &tetromino_I, &tetromino_J, -- cgit v1.1