-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBROSGAME.CPP
executable file
·65 lines (65 loc) · 1.35 KB
/
BROSGAME.CPP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include<stdio.h>
#include<conio.h>
#include<bios.h>
#include<fstream.h>
#include<graphics.h>
#include<math.h>
#include<ctype.h>
#include<string.h>
#include<stdlib.h>
#include<dos.h>
#define PI 3.141593
#define R 170
#define sc setcolor
#include<process.h>
#include"mousesrc.cpp"
#include"brosnloa.cpp"
#include"ralle.cpp"
#include"connect4.cpp"
#include"fspace.cpp"
#include"cowsbull.cpp"
#include"brosload.cpp"
#include"brloads.cpp"
#include"calcgames.cpp"
#include"pacman.cpp"
char *brOS[] = { "Prahlad", "Roshan", "Aravind", "Nanda" };
void main()
{ int gd = DETECT, gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
cleardevice();
brosn();
delay(2000);
cleardevice();
screen();
initmouse();
i.x.ax=2;
setlinestyle(1,0,1);
for(int a=0; a<=getmaxy(); a++)
{ setfillstyle(SOLID_FILL,BLACK);
bar(0,a,getmaxx(),a+getmaxy()/30);
delay(5);
}
delay(100);
cleardevice();
pac();
delay(1000);
setbkcolor(BLACK);
cleardevice();
sc(WHITE);
settextstyle(2,0,10);
for(int e = -1, ex, ey = getmaxy()/2-145; e < 4; e++, ey+=60)
{ if(e==-1)
{ ex = getmaxx()/2 - 4*11;
outtextxy(ex,ey,"brOS");
line(ex-3,ey+39,ex+90,ey+39);
}
else
{
ex = getmaxx()/2 - 11*strlen(brOS[e]);
outtextxy(ex,ey,brOS[e]);
}
}
delay(3000);
cleardevice();
closegraph();
}