perf(MCU课设): 显示优化

This commit is contained in:
iridiumR 2022-06-06 22:45:06 +08:00
parent e800cbf2aa
commit 6fa0b24284

View file

@ -126,10 +126,10 @@ void m_block(struct _menu* this)
drawVOID8(70, 6, 32);
}
drawSUPNUM(70, 2, score/10000); //绘制分数
drawSUPNUM(78, 2, score/1000);
drawSUPNUM(86, 2, score/100);
drawSUPNUM(94, 2, score/10);
drawSUPNUM(102, 2, score%10);
drawSUPNUM(79, 2, score/1000);
drawSUPNUM(88, 2, score/100);
drawSUPNUM(97, 2, score/10);
drawSUPNUM(106, 2, score%10);
blockGameOver(); //检查是否游戏结束
genPiece(); //若有需要,生成新块
dropPiece(); //若有需要,块下落
@ -147,7 +147,7 @@ void m_about(struct _menu* this)
if(LAST != &M_ABOUT)
{
LAST = &M_ABOUT;
delayms(2000);
drawNAME(); //绘制名字
delayms(2000);
drawNUMBER(); //绘制学号