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

#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