15#define NUM_PIECE_TYPES 7
16#define NUM_ROTATIONS 4
17#define CELLS_PER_PIECE 4
static u8 i
Definition main.c:156
signed char s8
8-bit signed integer (-128 to 127)
Definition types.h:43
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:46
u8 pieceRotateCW(u8 rot)
Definition piece.c:108
u8 pieceRandom(void)
Definition piece.c:102
u8 pieceRotateCCW(u8 rot)
Definition piece.c:114
s8 pieceSpawnCol(u8 type)
Definition piece.c:97
s8 pieceGetCellCol(u8 type, u8 rot, u8 i)
Definition piece.c:86
s8 pieceGetCellRow(u8 type, u8 rot, u8 i)
Definition piece.c:80
s8 pieceSpawnRow(u8 type)
Definition piece.c:92