background image

textout(handle,32,12,wColors+2,1,"                ");
level=2,score=20;
Sleep(2000);
textout(handle,22,6,wColors+2,1,"                ");
break;

}
else if(choice=='3')
{

textout(handle,22,6,wColors+2,1,"开始游戏,高级");
textout(handle,32,8,wColors+2,1,"                ");
textout(handle,32,10,wColors+2,1,"                ");
textout(handle,32,12,wColors+2,1,"                ");
level=4,score=40;
Sleep(2000);
textout(handle,22,6,wColors+2,1,"                ");
break;

}
else if(choice!='1'&&choice!='2'&&choice!='3')

continue;

}
pro();
break;

case 2:

return 0;

default:

printf("错误,按键继续");
while(!_kbhit());

}

}

}

void pro()                            //游戏主题
{

initiate1();
int *b=NULL;
b=build();   //创建方块
int sign,blank,x,y;
while(1)
{

for(int i=0;i<4;i++)          //复制方块

for(int j=0;j<4;j++)

if(a[i][j]=*(b+i*4+j))  blank=i;

 

   

y=1-blank;x=4;