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

27 lines
431 B
C
Raw Normal View History

#ifndef _BLOCK_H_
#define _BLOCK_H_
2022-06-06 06:27:04 +00:00
#include <stdlib.h>
2022-06-06 06:27:04 +00:00
#include <string.h>
#include "button.h"
#define MAX_X 8
#define MAX_Y 12
void blockInit();
2022-06-06 06:27:04 +00:00
void blockDestroy();
void genPiece();
void dropPiece();
void drawBlock();
2022-06-06 06:27:04 +00:00
void moveLeftPiece();
void moveRightPiece();
void judgeBlock();
void blockGameOver();
2022-06-07 13:45:23 +00:00
void saveBest();
void readBest();
unsigned int addBest(unsigned int s);
unsigned int rotateBlock(enum OPR opr);
#endif