-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSNLAYOUT.CPP
125 lines (123 loc) · 3.61 KB
/
SNLAYOUT.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#include(fstream.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<dos.h>
void centertext(char *);
void singleplayer();
void multiplayer();
void credits();
void settings();
void main()
{
clrscr();
cout<<" ÜÜÜÜÜÜÜÜÜÜÜÜÜ ÜÜÛÛÛÜÜ \n";
cout<<" ÜÛÛÛÛÛÛÛÛßßÛÛÛÛÛÛÛÜ ÜÛÛÛÛÛÛÛÛÛÜ \n";
cout<<" ÜÛÛÛÛÛÛÛÛÛ ÛÛßßßßß ÛÛÛÛß ßÛÛÛÜ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÜÜÛÛÛÜÜÜÜÜ ÛÛÛÛÜ ÜÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛß ßÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛßßßßßßßß ßÛÛÛÛÛßß \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÜ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÜ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÜ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ßÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ßÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ßÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÜÜÜÜÜÜÜÜÜÜÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÜÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ \n";
cout<<" ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛß \n";
cout<<" ßÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛß \n";
cout<<" ßßßßßßßßßßßßßßß \n";
delay(1000);
window(10,21,70,25);
cout<<"Loading";
window(10,22,70,25);
for(int x=0;x<60;x++)
{
cout<<"Û";
delay(60);
}
window(10,23,70,25);
cout<<"completed...";
window(10,24,70,25);
cout<<"Press any Key to continue...";
int ch;
_main:
window(1,1,80,25);
clrscr();
cout<<"\n\n\n\n\n\n";
centertext("MAIN MENU");
cout<<"\n\n\n";
centertext("1. Single Player");
centertext("2. Play Multiplayer");
centertext("3. Settings");
centertext("4. Credits");
centertext("5. Exit");
cout<<"\n\n\n";
centertext("Enter Your Choice :");
cout<<"\t\t\t\t ";
cin>>ch;
switch(ch)
{ case 1: singleplayer();
break;
case 2: multiplayer();
break;
case 3: settings();
break;
case 4: credits();
break;
case 5: exit(0);
break;
default: cout<<"Wrong choice!!! Enter again";
getch();
goto _main;
}
goto _main;
}
void centertext(char *s)
{ int space = (80 - strlen(s))/2;
for(int i=0;i<space;i++)
{ cout<<" ";
}
for(i=0;i<strlen(s);i++)
{ cout<<s[i];
}
cout<<endl;
}
void singleplayer(){
clrscr();
cout<<"Single Player Content Goes Here";
getch();
}
void multiplayer(){
clrscr();
cout<<"Multiplayer Content Goes HEre";
getch();
}
void settings(){
clrscr();
cout<<"\n\n\n";
centertext("SETTINGS");
getch();
}
void credits(){
clrscr();
cout<<"\n\n\n";
centertext("CREDITS");
cout<<"\n\n";
centertext("Shashank Srivastava");
endl;endl;
centertext("Avinash Kumar");
endl;endl;
centertext("Sakshi Jha");
endl;endl;
centertext("Fahad");
cout<<"\n\n\n";
window(25,1,25,80);
centertext("Press Any key to go back!!!");
getch();
}