{ {0x00, 0x00, 0x00, 0x00}, {0x44, 0xC4, 0xC4, 0x84},
{0x00, 0x00, 0x00, 0x00}, {0x00, 0x00, 0x00, 0x00} }, //rep
{ {0x00, 0x14, 0x00, 0x00}, {0x00, 0x34, 0x00, 0x00},
- {0x00, 0x34, 0x00, 0x00}, {0x00, 0x24, 0x00, 0x00} } }, //stick (blue)
+ {0x00, 0x34, 0x00, 0x00}, {0x00, 0x24, 0x00, 0x00} } }, //I, stick (blue)
{ { {0x00, 0x00, 0x00, 0x00}, {0x00, 0x55, 0x95, 0x00},
{0x00, 0x65, 0xA5, 0x00}, {0x00, 0x00, 0x00, 0x00} },
{ {0x00, 0x00, 0x00, 0x00}, {0x00, 0x55, 0x95, 0x00},
{0x00, 0x65, 0xA5, 0x00}, {0x00, 0x00, 0x00, 0x00} }, //rep
{ {0x00, 0x00, 0x00, 0x00}, {0x00, 0x55, 0x95, 0x00},
- {0x00, 0x65, 0xA5, 0x00}, {0x00, 0x00, 0x00, 0x00} } } //square (purple)
+ {0x00, 0x65, 0xA5, 0x00}, {0x00, 0x00, 0x00, 0x00} } } //O, square (purple)
};
int ShapeIterate(char s, int scr, int y, int x, ShapeDrawFunc func)
char type;
short color;
} myColorTable[] = {
- { BT_white, COLOR_WHITE },
- { BT_blue, COLOR_BLUE },
- { BT_magenta, COLOR_MAGENTA },
- { BT_cyan, COLOR_CYAN },
- { BT_yellow, COLOR_YELLOW },
- { BT_green, COLOR_GREEN },
- { BT_red, COLOR_RED },
- { BT_none, 0 }
+ { BT_T, COLOR_WHITE },
+ { BT_I, COLOR_BLUE },
+ { BT_O, COLOR_MAGENTA },
+ { BT_L, COLOR_CYAN },
+ { BT_J, COLOR_YELLOW },
+ { BT_S, COLOR_GREEN },
+ { BT_Z, COLOR_RED },
+ { BT_none, 0 }
}; //myColorTable
int i = 0;
typedef enum _GameType { GT_onePlayer, GT_classicTwo, GT_len } GameType;
typedef enum _BlockTypeA {
BT_shadow, BT_none,
- BT_green, BT_cyan, BT_blue, BT_magenta, BT_red, BT_yellow, BT_white,
+ BT_S, BT_L, BT_I, BT_O, BT_Z, BT_J, BT_T,
BT_wall, BT_len
} BlockTypeA;
typedef enum _FDType { FT_read, FT_write, FT_except, FT_len } FDType;