22 lines
No EOL
323 B
C
22 lines
No EOL
323 B
C
#ifndef _BLOCK_H_
|
|
#define _BLOCK_H_
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "button.h"
|
|
|
|
#define MAX_X 8
|
|
#define MAX_Y 12
|
|
|
|
enum GS {start,good,over};
|
|
|
|
void blockInit();
|
|
void blockDestroy();
|
|
|
|
void genPiece();
|
|
void dropPiece();
|
|
void drawBlock();
|
|
void moveLeftPiece();
|
|
void moveRightPiece();
|
|
void judgeBlock();
|
|
#endif |