fix(MCU课设): 修复分数显示错误
This commit is contained in:
parent
6fa0b24284
commit
3e5ae0de2d
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ Menu* LAST = NULL; //
|
||||||
|
|
||||||
enum OPR opr = idle;
|
enum OPR opr = idle;
|
||||||
static unsigned char local[10] = {0};
|
static unsigned char local[10] = {0};
|
||||||
unsigned int score = 0;
|
unsigned int score;
|
||||||
extern enum GS blockGameStatus;
|
extern enum GS blockGameStatus;
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,9 +126,9 @@ void m_block(struct _menu* this)
|
||||||
drawVOID8(70, 6, 32);
|
drawVOID8(70, 6, 32);
|
||||||
}
|
}
|
||||||
drawSUPNUM(70, 2, score/10000); //绘制分数
|
drawSUPNUM(70, 2, score/10000); //绘制分数
|
||||||
drawSUPNUM(79, 2, score/1000);
|
drawSUPNUM(79, 2, (score%10000)/1000);
|
||||||
drawSUPNUM(88, 2, score/100);
|
drawSUPNUM(88, 2, (score%1000)/100);
|
||||||
drawSUPNUM(97, 2, score/10);
|
drawSUPNUM(97, 2, (score%100)/10);
|
||||||
drawSUPNUM(106, 2, score%10);
|
drawSUPNUM(106, 2, score%10);
|
||||||
blockGameOver(); //检查是否游戏结束
|
blockGameOver(); //检查是否游戏结束
|
||||||
genPiece(); //若有需要,生成新块
|
genPiece(); //若有需要,生成新块
|
||||||
|
|
Reference in a new issue