hey everyone,
thx for help that all of u did.I actually made a program using ur help and taking help from the sites u gave....
ok i have made this program, it works perfectly,
# include<stdio.h>
# include<conio.h>
# include<stdlib.h>
# include<graphics.h>
# include<alloc.h>
# include<dos.h>
void main(void)
{
int gm,gd=DETECT;
int i;
void*p;
initgraph(&gd,&gm,"c:\\tc3\\bgi");
setcolor(RED);
line(130,75,170,75);
line(130,75,125,100);
line(170,75,175,100);
rectangle(100,100,200,125);
fillellipse(175,125,10,10);
fillellipse(175,125,5,5);
fillellipse(120,125,10,10);
fillellipse(120,125,5,5);
p=malloc(imagesize(100,75,210,135));
getimage(100,75,210,135,p);
cleardevice();
i=0;
while(!kbhit()&&i<640)
{
putimage(i,240,p,XOR_PUT);
delay(8);
cleardevice();
i++;
}
closegraph();
getch();
}
its a moving car
now again i need ur help, not help but helps....
1).my car only moves forward, wat should i do if i wanna move it in reverse???
2).my car has no windows, tried alot cant figure it out...
3).and how shoul i fill colors in my car???
and also if u wanna enhance it more plzz do it...
thx again......