diff --git a/MCU/MCU_REAL _FINAL/menu.c b/MCU/MCU_REAL _FINAL/menu.c index 9fbbe9c..ab5d39a 100644 --- a/MCU/MCU_REAL _FINAL/menu.c +++ b/MCU/MCU_REAL _FINAL/menu.c @@ -23,7 +23,7 @@ Menu* LAST = NULL; // enum OPR opr = idle; static unsigned char local[10] = {0}; -unsigned int score = 0; +unsigned int score; extern enum GS blockGameStatus; @@ -126,9 +126,9 @@ void m_block(struct _menu* this) drawVOID8(70, 6, 32); } drawSUPNUM(70, 2, score/10000); //绘制分数 - drawSUPNUM(79, 2, score/1000); - drawSUPNUM(88, 2, score/100); - drawSUPNUM(97, 2, score/10); + drawSUPNUM(79, 2, (score%10000)/1000); + drawSUPNUM(88, 2, (score%1000)/100); + drawSUPNUM(97, 2, (score%100)/10); drawSUPNUM(106, 2, score%10); blockGameOver(); //检查是否游戏结束 genPiece(); //若有需要,生成新块