forked from khssupriya/Care
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLOAD.H
More file actions
81 lines (67 loc) · 1.31 KB
/
LOAD.H
File metadata and controls
81 lines (67 loc) · 1.31 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// #include <stdio.h>
// #include <conio.h>
// #include <string.h>
// #include <stdlib.h>
// #include <graphics.h>
void start_loading(){
int i;
int a,b,c;
for(i=0;i<10;i++)
{
a=b=c=BLACK;
if(i%3==0)a=GREEN;
else if(i%3 == 1)b=GREEN;
else c=GREEN;
setfillstyle(SOLID_FILL,a);
circle(255,150,5);
floodfill(256,150,WHITE);
setfillstyle(SOLID_FILL,b);
circle(285,150,5);
floodfill(286,150,WHITE);
setfillstyle(SOLID_FILL,c);
circle(315,150,5);
floodfill(316,150,WHITE);
settextstyle(8,0,1);
outtextxy(255,180,"Loading...");
delay(500);
}
}
void load_title(){
int i,j;
char title[100][100],each;
strcpy(title[0],"C");
strcpy(title[1],"a");
strcpy(title[2],"r");
strcpy(title[3],"e");
settextstyle(3,0,5);
outtextxy(250,150,"Care");
for(i=0;i<=10;i++)
{
cleardevice();
for(j=0;j<4;j++)
{
if(j==i%4)
setcolor(GREEN);
settextstyle(3,0,8);
if(j==3)
outtextxy(240+j*35,150,title[j]);
else
outtextxy(240+j*40,150,title[j]);
setcolor(WHITE);
//delay(100);
}
delay(200);
}
}
// void main() {
// int gd=DETECT,gm;
// initgraph(&gd,&gm,"c:\\turboc3\\bgi");
// cleardevice();
// load_title();
// cleardevice();
// start_loading();
// cleardevice();
// home();
// closegraph();
// getch();
// }