first commit

master
296289990@qq.com 6 years ago
parent 847418eb53
commit 0da02e1add

@ -690,6 +690,16 @@ void Gameplay()
tetris->flag+=16; tetris->flag+=16;
} }
} }
if(ch==80){
if(ifMove(tetris)!=0)
{
tetris->y+=2;
}
if(ifMove(tetris)==0)
{
tetris->y=tetris->y-2;
}
}
if(ch == 32) //按空格键,暂停 if(ch == 32) //按空格键,暂停
{ {
PrintTetris(tetris); PrintTetris(tetris);

Binary file not shown.
Loading…
Cancel
Save