-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
323 lines (308 loc) · 9.59 KB
/
index.html
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<HTML>
<HEAD>
<TITLE>Healing The Game</TITLE>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- style -->
<link rel="stylesheet" href="fonts.css">
<!-- Sweet alert -->
<script src="sweetalert-master/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css">
</HEAD>
<BODY>
<style>
body
{
background-image: url("background.jpg");
}
</style>
<p><font face="lato">Hi, here is 'Healing The Game'.</font></p>
<p><font face="lato">This little game is based on a story by <a href="https://twitter.com/LVGHSTmusic" target="_blank" >In Love With a Ghost</a> and developped by <a href="https://twitter.com/Hindelstark" target="_blank" >Hindelstark</a>.</font></p>
<p><font face="lato">Clic <a href="https://www.youtube.com/watch?v=aB2UD0k5CFE" target="_blank" >here</a> to listen to the introduction of Healing EP, the enchanting music that inspired this game.</font></p>
<p><font face="lato">To read the introduction, clic on 'Story'. If you just want to play, then clic 'Start the adventure !'</font></p>
<p><font face="lato">Warning, answers are case-sensitive.</font></p>
<p><font face="lato">Thank you for playing, see you soon !</font></p>
<center>
<div style="padding:3px; padding-left:6px; width:175px; border:1px dotted #d0d0d0; border-left:1px dotted #d0d0d0; margin-left:20px; font-style:italic;">
<p><center><font face="lato"><a href=javascript:void(0); onclick="myStory();">Story</a></font></center></p>
<p><center><font face="lato"><a href=javascript:void(0); onclick="myGame();">Start the adventure !</a></font></center></p>
</div>
</center>
<SCRIPT type="text/JavaScript">
<!-- // Cache ce qui suit aux navigateurs qui ne supportent pas JavaScript
function myStory()
{
swal(
{
title: "",
text: "A nice witch appears...",
type: "info",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "Hello",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "I'm pleased to meet you",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "My name is Nemu and I need to tell you something",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "I live in a lost place, trapped here for eternity...",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "Do not worry, I actually enjoy this place",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "However, I know that soon a portal will open",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "We're all very excited about this",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "Why don't you comme say Hello ?",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal(
{
title: "",
text: "...",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal({
title: "",
text: "...",
showCancelButton: true,
showConfirmButton: true,
confirmButtonColor: "#B5E655",
confirmButtonText: "Ok",
closeOnConfirm: false
},
function()
{
swal("Ready for adventure ?");
}
);
}
);
});
}
);
}
);
}
);
}
);
}
);
}
);
}
);
}
);
}
--> // Fin de la partie cachée
</SCRIPT>
<SCRIPT type="text/JavaScript">
<!-- // Cache ce qui suit aux navigateurs qui ne supportent pas JavaScript
function myGame()
{
function myGame()
{
confirm("You are in the forest, completely focused on your training : lighting candles from 2 meters away using your fire spell. Suddenly you hear a noise behind you and freeze completely, scared that someone might see your training and make fun of you. Or maybe it's something.. dangerous?");
var reponseUtilisateur = prompt("What do you do? (Hide/Run)");
if (reponseUtilisateur==="Run")
{
confirm ("You manage to escape the beast. You're safe... For Now.");
}
else
{
confirm("In front of you is a chained gigantic elf beast using the body of a dead human as both a weapon and a snack. He sees you and seems to be ready for a fight!");
var reponseUtilisateur = prompt("Fight/Help him cook");
if (reponseUtilisateur==="Fight")
{
confirm("You try to cast a fireball but you fail... The beast kills you in a breath");
}
else
{
confirm("Thinking he wants help for cooking (What is wrong with you?) you start a modest fire using some branches combined with your magic powers. The giant sees your fire and starts running away in fear while screaming 'FIREEE! NOOO!' He leaves the body on the floor.");
var reponseUtilisateur = prompt("Follow the giant/Cook the body anyway");
if (reponseUtilisateur==="Follow the giant")
{
confirm("The giant notices that you're following him... The beast turn his back and kills you in a breath.");
}
else
{
confirm("A group of elves surround you while you are cooking. When they see what you are cooking, they execute you without any warning.");
}
}
}
confirm("Thank you for playing, see you soon")
}
//////////////////////////////
swal(
{
title: "",
text: "You are in the forest, completely focused on your training : lighting candles from 2 meters away using your fire spell. Suddenly you hear a noise behind you and freeze completely, scared that someone might see your training and make fun of you. Or maybe it's something.. dangerous?",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "What do you do? (Hide/Run)"
},
function(inputValue)
{
if (inputValue === false) return false;
if (inputValue === "")
{ swal.showInputError("You need to write something!");
return false }
if (inputValue === "Run")
{
swal("You manage to escape the beast. You're safe... For Now.");
}
else swal({
title: "",
text: "In front of you is a chained gigantic elf beast using the body of a dead human as both a weapon and a snack. He sees you and seems to be ready for a fight!",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "Fight/Help him cook"
},
function(inputValue)
{
if (inputValue === false) return false;
if (inputValue === "")
{ swal.showInputError("You need to write something!");
return false }
if (inputValue === "Fight")
{
swal({
title: "Game Over",
text: "You try to cast a fireball but you fail... The beast kills you in a breath",
imageUrl: "deadsign.jpg",});
}
else swal({
title: "",
text: "Thinking he wants help for cooking (What is wrong with you?) you start a modest fire using some branches combined with your magic powers. The giant sees your fire and starts running away in fear while screaming 'FIREEE! NOOO!' He leaves the body on the floor.",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "Follow the giant/Cook the body anyway"
},
function(inputValue)
{
if (inputValue === false) return false;
if (inputValue === "")
{ swal.showInputError("You need to write something!");
return false }
if (inputValue === "Follow the giant")
{
swal({
title: "Game Over",
text: "The giant notices that you're following him... The beast turn his back and kills you in a breath.",
imageUrl: "deadsign.jpg",
});
}
else swal({
title: "Game Over",
text: "A group of elves surround you while you are cooking. When they see what you are cooking, they execute you without any warning.",
imageUrl: "deadsign.jpg",
});
}
);
}
);
});
}
--> // Fin de la partie cachée
</SCRIPT>
</BODY>
</HTML>