perf(MCU课设): 显示优化
This commit is contained in:
parent
e800cbf2aa
commit
6fa0b24284
1 changed files with 5 additions and 5 deletions
|
@ -126,10 +126,10 @@ 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(78, 2, score/1000);
|
drawSUPNUM(79, 2, score/1000);
|
||||||
drawSUPNUM(86, 2, score/100);
|
drawSUPNUM(88, 2, score/100);
|
||||||
drawSUPNUM(94, 2, score/10);
|
drawSUPNUM(97, 2, score/10);
|
||||||
drawSUPNUM(102, 2, score%10);
|
drawSUPNUM(106, 2, score%10);
|
||||||
blockGameOver(); //检查是否游戏结束
|
blockGameOver(); //检查是否游戏结束
|
||||||
genPiece(); //若有需要,生成新块
|
genPiece(); //若有需要,生成新块
|
||||||
dropPiece(); //若有需要,块下落
|
dropPiece(); //若有需要,块下落
|
||||||
|
@ -147,7 +147,7 @@ void m_about(struct _menu* this)
|
||||||
if(LAST != &M_ABOUT)
|
if(LAST != &M_ABOUT)
|
||||||
{
|
{
|
||||||
LAST = &M_ABOUT;
|
LAST = &M_ABOUT;
|
||||||
|
delayms(2000);
|
||||||
drawNAME(); //绘制名字
|
drawNAME(); //绘制名字
|
||||||
delayms(2000);
|
delayms(2000);
|
||||||
drawNUMBER(); //绘制学号
|
drawNUMBER(); //绘制学号
|
||||||
|
|
Reference in a new issue