/* Execute in Turbo C only
You must first save this file in TC directory as NAME.C only and then run it in TC
if you save as .CPP then it won't execute */
#include <graphics.h>
#include <dos.h>
#include <conio.h>
main()
{
int gd=DETECT,gm,button,x,y,x2,y2,i;
char a;
x=0;y=0;
initgraph(&gd,&gm,"");
setcolor(2);
setfillstyle(SOLID_FILL,BLACK);
outtextxy(50,400,"Keep holding Space For Tom to Chase, Any key to Exit ");
outtextxy(50,430,"hell with the rules this was made by me long back now just edited little ");
outtextxy(50,450,"i have to study for VTU bye and btw All the best Mr Very Rude Adi");
for(x=0;x<480;x++)
{
outtextxy(x,y,"Tom Jerry");
a=getch();
bar(x,y,x+79,y+10);
if(a!=' ') exit(0);
}
for(x=480;x>0;x--)
{
outtextxy(x,y+30,"Tom Jerry");
a=getch();
bar(x,y,x+79,y+50);
if(a!=' ') exit(0);
}
while(!kbhit());
}