#include #include #include #include #include int main(){ int gdrive=DETECT,gmode; initgraph(&gdrive,&gmode," "); cleardevice(); //****************************Menu**************************************** char flag='1'; int xx,yy,p=0; xx=getmaxx()/2; yy=getmaxy()/2; outtextxy(200,130,"************************************"); outtextxy(200,140,"* *"); outtextxy(200,150,"* *"); outtextxy(300,150,"1.Start"); outtextxy(200,160,"* *"); outtextxy(200,170,"* *"); outtextxy(300,170,"2.Exit"); outtextxy(200,180,"* *"); outtextxy(200,190,"************************************"); setcolor(8); outtextxy(xx-150,yy+60,"Programer by:"); setcolor(GREEN); outtextxy(xx-70,yy+80,"Ghazal Malekpour"); setcolor(12); outtextxy(xx-40,yy+150,"› right 2011"); delay(1000); b: flag=getch(); if(flag=='2') return 0; else if(flag=='1') cleardevice(); else goto b; //****************************Loading************************************* setcolor(14); while(p<=700){ rectangle(0,390,p,400); switch (p){ case 0: outtextxy(xx,yy,"0%"); break; case 70: outtextxy(xx,yy,"10%"); break; case 140: outtextxy(xx,yy,"20%"); break; case 210: outtextxy(xx,yy,"30%"); break; case 280: outtextxy(xx,yy,"40%"); break; case 350: outtextxy(xx,yy,"50%"); break; case 420: outtextxy(xx,yy,"60%"); break; case 490: outtextxy(xx,yy,"70%"); break; case 560: outtextxy(xx,yy,"80%"); break; case 630: outtextxy(xx,yy,"90%"); break; case 700: outtextxy(xx,yy,"100%"); break; } delay(1000); cleardevice(); p+=70; } setcolor(15); setbkcolor(4); outtextxy(xx-90,yy,"2007/02/06 >> Iraq"); delay(4000); cleardevice(); //*******************************Home*********************************** int x,j=400,i=100,z,k=500,c,v,m; setbkcolor(0); rectangle(400,100,500,400); rectangle(375,75,475,375); line(375,75,400,100); line(475,75,400,400); line(475,375,500,400); for(x=5;x<=100;x+=5) line(j+x,100,j+x,400); for(z=5;z<=300;z+=5) line(j,i+z,k,i+z); for(c=5;c<=300;c+=5) line(375,75+c,400,100+c); for(v=2;v<=100;v++) line(375+v,75,400+v,100); line(420,89,420,30); circle(420,30,2); //*******************************Soldier********************************** int cx,cy,cr; circle(200,300,10); //Head line(200,310,200,340); //Body line(235,311,235,307); // zoom | line(230,308,240,308); // zoom - line(215,311,250,311); //Gun - line(215,315,215,311); //Gun | line(215,315,250,315); //Gun _ setcolor(5); line(220,319,220,315); //Gun |M line(250,311,250,315); //Gun | line(235,315,233,325); //Gun \ setcolor(7); line(200,320,220,320); //Hand R line(200,323,233,325); //Hand L line(200,340,210,350); //leg R line(190,350,200,340); //leg L //_____________________1___________________________ setcolor(10); line(260,313,265,313); // Shot 1 green sound(550); delay(1000); nosound(); setcolor(0); line(260,313,265,313); // Shot 1 black delay(500); //______________________2__________________________ setcolor(10); line(300,313,305,313); // Shot 2 green sound(3073); delay(1000); nosound(); setcolor(0); line(300,313,305,313); // Shot 2 black delay(1000); //______________________3__________________________ setcolor(10); line(372,313,376,313); // Shot 3 sound(2150); delay(1000); nosound(); setcolor(0); line(372,313,376,313); // Shot 3 black delay(1000); //_____________________Boom___________________________ fillellipse(390,315,5,10); // Boom sound(6900); delay(1000); nosound(); setcolor(4); outtextxy(192,297,":D"); // Fase delay(2000); cleardevice(); //*******************************Home*********************************** j=400;i=100;k=500; setcolor(15); rectangle(400,100,500,400); rectangle(375,75,475,375); line(375,75,400,100); line(475,75,400,400); line(475,375,500,400); for(x=5;x<=100;x+=5) line(j+x,100,j+x,400); for(z=5;z<=300;z+=5) line(j,i+z,k,i+z); for(c=5;c<=300;c+=5) line(375,75+c,400,100+c); for(v=2;v<=100;v++) line(375+v,75,400+v,100); line(420,89,420,30); circle(420,30,2); //*******************************Panzer********************************** int q=0,Cx,Lx,Rx,G1x,G2x,G3x; int Ct=385,Lt=380,Rt=400,G1t=439,G2t=439,G3t=439; for(q=0;q<=200;q+=30){ setcolor(0); circle(Cx,Ct,15); line(Lx,Lt,Lx+25,Lt-5); rectangle(Rx,Rt,Rx+80,Rt+30); circle(G1x,G1t,9); circle(G2x,G2t,9); circle(G3x,G3t,9); setcolor(4); Cx=q+90; circle(Cx,Ct,15); Lx=q+105; line(Lx,Lt,Lx+25,Lt-5); Rx=q+50; rectangle(Rx,Rt,Rx+80,Rt+30); G1x=q+70; circle(G1x,G1t,9); G2x=q+90; circle(G2x,G2t,9); G3x=q+110; circle(G3x,G3t,9); delay(900); } //************Lole************** setcolor(0); line(Lx,Lt,Lx+25,Lt-5); setcolor(4); line(Lx,Lt,Lx+25,Lt-15); delay(1000); //************Shot Lole********** setcolor(13); line(315,361,320,356); sound(2800); delay(1000); setcolor(0); line(315,361,320,356); nosound(); setcolor(13); line(345,340,350,335); sound(4090); delay(1000); setcolor(0); line(345,340,350,335); nosound(); setcolor(13); line(370,330,375,325); sound(5000); delay(900); setcolor(0); line(370,330,375,325); sound(1715); delay(100); sound(2520); nosound(); int hh=1; for(int h=1;h<4;h++){ hh+=h+30; fillellipse(400,320,hh,10); delay(500); sound(1715); delay(100+(h*50)); nosound(); } cleardevice(); //**********************Home Dis**************************** //**********************The End***************************** setcolor(4); outtextxy(xx-7,yy,"The End"); delay(3000); cleardevice(); getch(); closegraph(); return 0; }