aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-01-28 15:34:04 +1300
committerDavid Phillips <david@sighup.nz>2017-01-28 15:34:04 +1300
commitb14637cc99e5fbed179307e8448dd618be6e461d (patch)
tree5f34023dec71aa8c6fac650daebe141bab09ebb4
parent694bcc8c2b552924c4f0cca96206bd8b72fde21d (diff)
downloadtetris-b14637cc99e5fbed179307e8448dd618be6e461d.tar.xz
More misc tidying
-rw-r--r--tetromino.h20
1 files changed, 1 insertions, 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,