该楼层疑似违规已被系统折叠隐藏此楼查看此楼
bangzhujiemian();{if(800
closegraph();}break;default: continue;}}}}
void zhunbeiyouxi(){setcolor(BLACK);
rectangle(210,610,270,650);outtextxy(220,620,"");kaishiyouxi();
}
void bangzhujiemian(){int a; //Beep(400,100);setcolor(BLACK);outtextxy(220,620,"");setcolor(WHITE);outtextxy(220,620,"返 回");outtextxy(250,150," ");Sleep(500);outtextxy(250,200," ");Sleep(500);outtextxy(250,250," ");Sleep(500);outtextxy(250,300," ");Sleep(500);outtextxy(250,350," ");Sleep(500);outtextxy(250,400," ");Sleep(500);
MOUSEMSG m=GetMouseMsg();char ch[20];while(a!=0){if(MouseHit())m=GetMouseMsg();switch(m.uMsg){case WM_LBUTTONDOWN:{if(210
void youxinandu(){MOUSEMSG m;rectangle(350,150,700,250);rectangle(350,300,700,400);rectangle(350,450,700,550);outtextxy(450,180,"easy");outtextxy(450,330,"norma");outtextxy(450,480,"hard");while(true) {if(MouseHit())m=GetMouseMsg();switch(m.uMsg){ case WM_LBUTTONDOWN: if(350
return;// 按鼠标右键退出程序default:return;
}}
}
void kaishiyouxi(){char buf[10];int m=0,i; //Beep(400,100);closegraph();printf("请输入您的用户名 :\n");gets(name);initgraph(1024,768);setcolor(BLACK);rectangle(350,150,700,250);rectangle(350,300,700,400);rectangle(350,450,700,550);outtextxy(450,180,"easy");outtextxy(450,330,"normal");outtextxy(450,480,"hard");rectangle(210,610,270,650);outtextxy(220,620,"");setcolor(WHITE);rectangle(110,550,200,590);outtextxy(120,560,name);outtextxy(780,560,"score:");sprintf(buf,"%d",m);outtextxy(830,560,buf);setcolor(BLACK);setlinestyle(PS_SOLID, NULL, 50);line(490,535,490,545);setcolor(WHITE);setlinestyle(PS_SOLID, NULL, 10);line(490,540,490,460);setcolor(WHITE);outtextxy(430,330,"游戏准备开始");Sleep(1000);setcolor(BLACK);outtextxy(430,330,"游戏准备开始");
setcolor(WHITE);outtextxy(450,330,"开始! "); Sleep(1000); //Beep(800,100); setcolor(BLACK);outtextxy(450,330,"Start!");outtextxy(820,640,"退 出");outtextxy(130,640,"开 始");setcolor(WHITE);outtextxy(130,640,"重新开始");outtextxy(820,640,"右键结束游戏");
for(i=0;i
}
qiqiuluoxia();}
void dapaoyidong(){int c,d,e;MOUSEMSG m;char buf[10];
setcolor(WHITE); setlinestyle(PS_SOLID, NULL, 1);
while(true) {if(MouseHit())m=GetMouseMsg();switch(m.uMsg){ case WM_LBUTTONDOWN: if(100
setcolor(BLACK); setlinestyle(PS_SOLID, NULL, 50); line(490,535,490,545); setcolor(WHITE); setlinestyle(PS_SOLID, NULL, 10); e=sqrt(abs(m.x-490)*abs(m.x-490)+abs(m.y-540)*abs(m.y-540)); c=490+80*(m.x-490)/e; d=540+80*(m.y-540)/e; line(490,540,c,d); setcolor(WHITE); setlinestyle(PS_SOLID, NULL, 1);
if(q==2) q=-1; q=q+1; j[q].step=20; j[q].dx=20*(m.x-490)/e; j[q].dy=20*(m.y-540)/e; if(800
} return;// 按鼠标右键退出程序default:return;
}}
}
lz表示抄的别人的 得修改下才能交。。