-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.ps1
175 lines (133 loc) · 4.17 KB
/
start.ps1
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
function Get-Logo
{
Write-Host "__ ____ ____ ___ _____ _ _ "
Write-Host "\ \ / /\ \ / /\ \ / / | / __//| \ | |"
Write-Host " \ \ / / \ \ / / \ \_/ /| | | | // | \| |"
Write-Host " \ \/ / /\ \ \/ / \ / | | | |//| | . ` |"
Write-Host " \ / ____ \ / | | | |___| //_| | |\ |"
Write-Host " \/_/ \_\/ |_| |______//___/|_| \_|"
Write-Host "`n"
}
function Get-Options {
Get-Logo
Write-Host "Choose an option: "
Write-Host "1. Compile and execute the application."
Write-Host "2. How to compile."
Write-Host "3. Get more info about the developers."
Write-Host "4. Get more info about the project."
Write-Host "5. Generate documentation about the project."
Write-Host "6. Exit.`n"
$Option = Read-Host "Your option"
Clear-Host
ExecuteOptions -ExecutionOption $Option
}
function Get-Compilation {
make
Clear-Host
rm *.exe
rm *.o
Clear-Host
Get-Options
}
function Get-Instructions {
Get-Logo
Write-Host "1. Dependancies"
Write-Host " - g++ 10.3.0 or higher;"
Write-Host " - make 4.3 or higher;"
Write-Host "2. Compiling & Running"
Write-Host " 1. Run make (For compiling)"
Write-Host " 2. Run ./main.exe (For running)"
Write-Host "3. Cleaning"
Write-Host " 1. Automatically: "
Write-Host " - make clean"
Write-Host " 2. Manually:"
Write-Host " - rm *.exe; rm *.o`n"
Write-Host "`n1. Go Back."
Write-Host "2. Exit.`n"
$Option = Read-Host "Your option"
Clear-Host
switch($Option)
{
1 {Get-Options; break}
2 {Exit;}
}
}
function Get-Developers {
Get-Logo
Write-Host "Atanas Pozharliev - Scrum Master and Backend Developer."
Write-Host "Boris Savov - Front End Developer."
Write-Host "Kalin Chervenkov - Front End Developer."
Write-Host "Ivelin Vasilev - QA Engineer. `n"
Write-Host "1. Go Back."
Write-Host "2. Exit."
$Option = Read-Host "Your option"
Clear-Host
switch($Option)
{
1 {Get-Options; break}
2 {Exit;}
}
}
function Get-Info {
Get-Logo
Write-Host "Our project is a: "
Write-Host "- highly engaging,"
Write-Host "- story-based,"
Write-Host "- rogue-like,"
Write-Host "- skill-based,"
Write-Host "- speedrun-optimized,"
Write-Host "- randomized game, related to the Babylon tower. `n"
Write-Host "It consists of a main menu, a lobby for every floor & 2 random generated mazes for each floor.`n"
Write-Host "Each floor has 2 mazes in it and every maze can have up to 3 types of scrolls in it. `n"
Write-Host "1. Go To Main Menu."
Write-Host "2. Go Next."
Write-Host "3. Exit.`n"
$Option = Read-Host "Your option"
Clear-Host
switch($Option)
{
1 {Get-Options; break}
2 {Get-Storyline; break}
3 {Exit;}
}
}
function Get-Storyline {
Get-Logo
Write-Host "You are a lost adventurer. It's dark, and you can't see anything.`n"
Write-Host "While wondering around, trying to find a way to escape the darkness,"
Write-Host "you come around the entrance of the famous Babylon tower."
Write-Host "Because the tower is famous for ligthing the way, you go in.`n"
Write-Host "But before you can find your way, you need to go through series of mazes."
Write-Host "But fear not, there are all types of scrolls left from previous adventurers to help you."
Write-Host "`nSolve the mazes, find all the runes and light your way!`n"
Write-Host "1. Go Back."
Write-Host "2. Go To Main Menu"
Write-Host "3. Exit.`n"
$Option = Read-Host "Your option"
Clear-Host
switch($Option)
{
1 {Get-Info; break}
2 {Get-Options; break}
3 {Exit;}
}
}
function Get-Documentation {
doxygen
./docs\index.html
Clear-Host
Get-Options
}
function ExecuteOptions {
param($ExecutionOption)
switch ($ExecutionOption)
{
1 {Get-Compilation; break}
2 {Get-Instructions; break}
3 {Get-Developers; break}
4 {Get-Info; break}
5 {Get-Documentation; break}
6 {Exit}
}
}
Get-Options