|
|
|
@ -179,3 +179,33 @@ void mune()
|
|
|
|
|
if(flag==1||flag==2||flag==3) break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*Íæ¼ÒÊäÈë¿ØÖÆ*/
|
|
|
|
|
void gotc()
|
|
|
|
|
{
|
|
|
|
|
while(1)
|
|
|
|
|
{
|
|
|
|
|
flag=1;
|
|
|
|
|
switch(getch())
|
|
|
|
|
{
|
|
|
|
|
case '*': flag=4;break;
|
|
|
|
|
case '3': flag=3;break;
|
|
|
|
|
case '0': flag=0;break;
|
|
|
|
|
case 'w':case 'W': Print('w');break;
|
|
|
|
|
case 'a':case 'A': Print('a');break;
|
|
|
|
|
case 's':case 'S': Print('s');break;
|
|
|
|
|
case 'd':case 'D': Print('d');break;
|
|
|
|
|
}
|
|
|
|
|
if(flag==0||flag==2||flag==3||flag==4) break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*¸üеØͼ*/
|
|
|
|
|
void Print(char d)
|
|
|
|
|
{
|
|
|
|
|
xy(x,y);
|
|
|
|
|
switch(d){
|
|
|
|
|
case 'W':case 'w':up();break;
|
|
|
|
|
case 'S':case 's':down();break;
|
|
|
|
|
case 'A':case 'a':left();break;
|
|
|
|
|
case 'D':case 'd':right();break;
|
|
|
|
|
}
|
|
|
|
|
}
|