This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/MCU/MCU_REAL_FINAL/block.h
2022-06-09 12:52:41 +08:00

27 lines
No EOL
431 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
void blockInit();
void blockDestroy();
void genPiece();
void dropPiece();
void drawBlock();
void moveLeftPiece();
void moveRightPiece();
void judgeBlock();
void blockGameOver();
void saveBest();
void readBest();
unsigned int addBest(unsigned int s);
unsigned int rotateBlock(enum OPR opr);
#endif