first commit

master
296289990@qq.com 7 years ago
parent 2c8ebf3f33
commit 847418eb53

@ -690,17 +690,6 @@ void Gameplay()
tetris->flag+=16;
}
}
if(ch==80) //按 ↓键则加速下落
{
if(ifMove(tetris)!=0)
{
tetris->y+=2;
}
if(ifMove(tetris)==0)
{
tetris->y=FrameY+Frame_height-2;
}
}
if(ch == 32) //按空格键,暂停
{
PrintTetris(tetris);
@ -814,13 +803,10 @@ void explation()
printf("tip2: 通过 ↑使方块旋转");
color(14);
gotoxy(18,11);
printf("tip3: 通过 ↓加速方块下落");
color(11);
gotoxy(18,13);
printf("tip4: 按空格键暂停游戏,再按空格键继续");
printf("tip3: 按空格键暂停游戏,再按空格键继续");
color(4);
gotoxy(18,15);
printf("tip5: 按ESC退出游戏");
gotoxy(18,13);
printf("tip4: 按ESC退出游戏");
getch(); //按任意键返回主界面
system("cls"); //清屏
main(); //返回主函数

Binary file not shown.
Loading…
Cancel
Save