How To Draw Football Goal Animation in C++ (Computer Graphics)
PROJECT BY (SIMPLIFY LEARN PROGRAMMING) ON FOOTBALL GOAL ANIMATION SOURCE CODE: #include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> void main() { int x=0,gd=DETECT,gm,point[]={0,220,1600,220,1600,900,0,900,0,220}; float y=0; initgraph(&gd,&gm,"C:\\TC\\BGI"); setcolor(MAGENTA); settextstyle(6,HORIZ_DIR,6); outtextxy(200,250,"HI"); delay(1000); cleardevice(); settextstyle(7,VERT_DIR,1); outtextxy(200,50,"GET READY FOR ANIMATION"); delay(1000); cleardevice(); setcolor(GREEN); setfillstyle(SOLID_FILL,GREEN); fillpoly(5,point); setcolor(WHITE); circle(100,100,25); delay(1000); line(100,125,100,185); delay(1000); line(100,135,125,170); delay(1000); line(100,135,75,170); delay(1000); line(100,185,125,220); delay(1000); line(100,185,75,220); delay(1000); setcolor(RED); setfillstyle(SOLID_FILL,RED); fillellipse(135+x,210-y,10,10); for(...