forked from visionistStudios/eastergame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
505 lines (478 loc) · 15.8 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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<head>
<title>Easter Egg Game</title>
<link rel="icon" href="/eastergame/Images/Misc/eggsquare.png" type="image/png">
<style>
h1, h2, h3, p, span {
font-family:"Lucida Console";
}
#menu {
position:absolute;
right:50%;
bottom:0%;
transform:translate(50%,0%);
background-color:rgb(244, 238, 66);
display:none;
text-align:left;
padding:20px;
width:550px;
height:100px;
border-radius:20px;
}
#menu1, #menu2, #menu3, #menu4, #menu5 {
display:none;
}
#egg1, #egg2 {
display:none;
}
</style>
<style>
#title {
display:none;
}
#egg0 {
position:absolute;
right:50%;
top:50%;
transform:translate(50%,-50%);
user-select:none;
}
#request {
position:absolute;
right:0%;
top:50px;
width:300px;
height:100px;
}
#guide {
position:absolute;
right:0%;
top:200px;
width:300px;
height:100px;
}
#clickybtn {
position:absolute;
right:0%;
top:350px;
width:300px;
height:100px;
}
#map-pickup {
width:200;
height:30;
border: 1px solid black;
display:none;
}
</style>
<style>
#map-container {
border:3px dashed black;
overflow-x:hidden;
width:550px;
height:400px;
position:relative;
}
#map-compass {
position:absolute;
bottom:15px;
right:15px;
width:87px;
}
</style>
<style>
#location {
height:100%;
}
#area-container {
border:2px dashed black;
position:relative;
}
</style>
<style>
#fridge {
position:absolute;
right:0%;
top:50px;
width:300px;
height:100px;
}
#ebasket {
position:absolute;
right:0%;
top:200px;
width:300px;
height:100px;
}
#microwave {
position:absolute;
right:0%;
top:350px;
width:300px;
height:100px;
}
</style>
<style>
.section {
background-color:rgb(244, 223, 66);
display:none;
text-align:CENTER;
padding:20px;
overflow-x:hidden;
overflow-y:scroll;
}
.key {
display:none;
height:100;
}
.chest {
height:100;
}
.menu-btn {
width:100;
height:100;
background-color:rgb(255,255,255);
color:rgb(0,0,0);
border-radius:10px;
border:0px;
margin:0px 2px;
}
.menu-btn:hover {
background-color:rgb(181, 157, 72);
}
.map-btn {
font-weight:bold;
font-size:15px;
position:absolute;
color:red;
text-align:center;
display:none;
}
.map-btn:hover {
cursor:pointer;
}
.page {
display:none;
}
.fluffmsg {
font-family:"Palatino Linotype";
}
</style>
</head>
<body onload="init()">
<h3 style="display:none;" id="counter">
<span id="egg1" class="egg" onClick="findegg(1)">Easter Egg</span><img id = "egg2" onClick="findegg(2)" width="20" style="vertical-align:middle;padding:5px;" src="/eastergame/Images/Misc/egg.png"align="middle">s: <span id="eggs">0</span>
</h3>
<div id="page0" class="page">
<div align="center">
<h1 id="title">The <span id="egg3" onClick="findegg(3)">Easter Egg</span> Game</h1>
<br>
<div id="map-pickup" onClick="unlock('menu2');unlock('mapbtn0');hide('map-pickup');alert('oooh, a map!');">~ ` . * ,_^</div>
</div>
<div id="egg0">
<img onClick="clickEgg()" src="https://vignette.wikia.nocookie.net/minecraft360/images/f/fc/Egg-1-.png/revision/latest?cb=20140721080247"align="middle">
</div>
<div id="request" class="section" align="center">
<h3>Request a New Feature</h3>
<button onClick="request()"><p>Request</p></button>
</div>
<div id="guide" class="section" align="center">
<h3>Guide to the <span onClick="reset()">Easter Eggs</span></h3>
<p><span onClick="reset()">Easter Eggs</span> are very elusive creatures. They are triggered by a certain action. (ex: clicking <span onClick="findegg(5)">the egg</span> or pressing e) Some <span onClick="reset()">easter eggs</span> require multiple steps to activate. Also, no one likes smart @$$es who click on every instance of "<span onClick="reset()">easter egg</span>". I'm telling you: <strong>I WILL RESET YOUR GAME</strong> if I catch you clicking on the words "<span onClick="reset()">easter egg</span>". I mean, just click on <span onClick="findegg(6)">everything else</span>, though. Doesn't hurt to try! Also, another thing: there are a lot of other <span onClick="reset()">easter eggs</span> that don't actually count as eggs, but are just cool things to notice.</p>
<br>
<img src="/eastergame/Images/Misc/key.png" class="key" id='key0' onClick="vars['hasguidekey']=true;hide('key0');alert('Hmm, I wonder what this key does...')">
</div>
<div id="clickybtn" class="section" align="center">
<h3 >Random Clicky Button <span id="cbface" onClick="cbfaceClick()">-.-</span></h3>
<button onClick="vars['btnclicks1']++;check('btnclicks1',5,unlock,'egg4');cbMsg(false);" style="padding:20px;"><p>Clicky Button</p></button>
<br>
<br>
<img src="/eastergame/Images/Misc/chest.png" id="egg4" class="chest" onClick="check('hasguidekey',true,findegg,4)" style="display:none;">
<p id="cbmsg" class="fluffmsg" onClick="vars.cbmsg++;cbMsg(false);"></p>
</div>
</div>
<div id="page1" class="page">
<div align="center">
<h1>The Egg Map</h1>
<div id="map-container">
<span class="map-btn" id="mapbtn0" onClick="visit(0)">The Village</span>
<span class="map-btn" id="mapbtn1" onClick="visit(5)">The Cemetery</span>
<span class="map-btn" id="mapbtn2" onClick="visit(7)">The River's End</span>
<span class="map-btn" id="mapbtn3" onClick="visit(14)">The Mountains</span>
<span class="map-btn" id="mapbtn4" onClick="visit(99)">The Jungle Temple</span>
<span class="map-btn" id="mapbtn5" onClick="visit(99)">The Hole</span>
<span class="map-btn" id="mapbtn6" onClick="visit(99)">The Fog</span>
<span class="map-btn" id="mapbtn7" onClick="visit(99)">The Volcano</span>
<span class="map-btn" id="mapbtn8" onClick="visit(99)">The Storm</span>
<img src="/eastergame/Images/Misc/map.png" height="100%">
<img src="/eastergame/Images/Misc/compass.png" id="map-compass" onClick="vars.hascompass=true;hide('map-compass');alert('Ooh, a compass!')">
</div>
</div>
</div>
<div id="page2" class="page">
<div align="center">
<h1>The Computer</h1>
</div>
</div>
<div id="page3" class="page">
<div align="center">
<h1>The Closet</h1>
</div>
</div>
<div id="page4" class="page">
<div align="center">
<h1>The Kitchen</h1>
</div>
<div class="section" id="fridge" style="display:inline;">
<h1>The Fridge</h1>
<button onclick="save()">save your eggs in the freezer</button>
</div>
<div class="section" id="ebasket" style="display:inline;">
<h1>The Egg Basket</h1>
</div>
<div class="section" id="microwave" style="display:inline;">
<h1>The Microwave</h1>
</div>
</div>
<div id="page5" class="page">
<div align="center">
<h1 id="location-name"></h1>
<div id="area-container">
</div>
</div>
</div>
<div id="page6" class="page">
<div align="center">
<h3 id="fluffup" class="fluffmsg">
</h3>
</div>
</div>
<div id="page7" class="page">
</div>
<div id="page8" class="page">
</div>
<div id="page9" class="page">
</div>
<div id="menu">
<button class="menu-btn" onClick="page(0)" id="menu1"><p>The Egg Room</p></button>
<button class="menu-btn" onClick="page(1)" id="menu2"><p>The Egg Map</p></button>
<button class="menu-btn" onClick="page(2)" id="menu3"><p>The Computer</p></button>
<button class="menu-btn" onClick="page(3)" id="menu4"><p>The Closet</p></button>
<button class="menu-btn" onClick="page(4)" id="menu5"><p>The Kitchen</p></button>
</div>
<!--Loading Screen-->
<div id="page10">
<img src="https://i.kym-cdn.com/entries/icons/mobile/000/017/618/pepefroggie.jpg" width="100%" height="90%">
<h1>THE GAME IS CURRENTLY LOADING<h1>
</div>
<script>
//ALL OF THOSE ANNOYING EGG-SPECIFIC VARIABLES .-. -.- .-. -.- .-. -.- .-. -.-
var vars = {eggstage:0,//0
hasguidekey:false,//1
btnclicks1:0,//2
requeststage:0,//3
cbface:0,//4
hasclosetkey:false,//5
hasvillagekey:false,//6
hasrughousestate:0,//7
rughousestage:0,//8
rughousekey:false,//9
cemeteryopacity:1,//10
hasyellowflower1:false,//11
hasshovel:false,//12
lighthouseopacity:1,//13
hascompass:false,//14
fluffval:0,//15
cbmsg:0,//16
cbtrack:0,//17
octopusclick:0,//18
hasink:false,//19
};
var varonload = {
4:function(){
cbfaceClick(true);
cbMsg(true);
},
6:function(){
cemeteryLighten(true);
},
13:function(){
lighthouseLighten(true);
}
};
//main egg click
var notreadymsg = ["I'm not ready yet.","Come back later.","I'm BUSY GO AWAY.","Stop, I'm playing fortnite","Go click something else","Stop egging me."];
function clickEgg(){
if (vars.eggstage==0){
findegg(0);
vars.eggstage=-1;
}
else if (vars.eggstage==1){
findegg(7);
vars.eggstage=-1;
}
//not ready stage
else if (vars.eggstage==-1){
alert(notreadymsg[Math.floor(Math.random()*notreadymsg.length)]);
}
}
//request feature
function request(){
if (vars.requeststage==0){
if (egglist[7].found==true){
alert("Alrighty, here you go.");
unlock("menu");
unlock("menu1");
unlock("map-pickup");
vars.requeststage = 1;
return;
}else{
alert("I don't want to code right now.");
alert("Get me a giant egg and I'll think about it");
}
}
if (vars.requeststage==1){
if (vars.hascompass==true){
alert("I guess a compass is a type of magnet!");
alert("Uploading some code!");
unlock("menu5");
vars.requeststage = 2;
return;
}else{
alert("I'm afraid I cannot code at the moment.");
alert("Coding is a complicated process, and I need a magnet to upload the code");
alert("Find me one, and I can get you some more features.");
}
}
}
//ask for reset
function reset(){
alert("You really DO want me to reset your game, don't you?");
}
//Clicky Button Face
var cbfaces=["-.-","-.*","*.-","*.* <em>yawn</em>","-.- zzz","o.o good morning",
"o.0","0.o Hey!","o.o stop bugging me","o.o no really","-.- plz stop",
"o.o its really annoying","0.0 STOPPPP","o.o Okiee.... I guess you won't...",
"<br>................o.o","<br>.............o.o.....","<br>......o.o..........","<br>o.o There we go....",
"<br>o.o NOW STOP CLICKING","<br>o.o or I will unleash my secret weapon...","<br>o.o 3...","<br>o.o 2...","<br>o.o 1...",
"<br>[].[] I HAVE LASER VISION!","<br>o.o Ok no I guess...","<br>o.o I may not have a mouth...",
"<br>oOo BUT I CAN SCREEEEAM!","<br>@O@ <em>AAEEEEEEEEEEEEEEEAAEEAAAAAAAAAAAAAAAAAAEEEEEEEEEEH!!!!!!</em>"];
function cbfaceClick(load){
if (vars.cbface>=cbfaces.length-1){
findegg(8,load);
return;
}
if (!load){
vars.cbface++;
}
document.getElementById("cbface").innerHTML=cbfaces[vars.cbface];
}
//TO UPLOAD
var cbmsgs = [["hmmmmm", "determined are you?", "you know that this is a bad game", "stop playing it",
"it's stupid", "all you do is collect easter eggs", "and in the end there is no reward",
"so JUST STOP ALREADY", "fine ...", "well, if you are going to keep playing, do me a favor",
"...","Go to the cemetery","And dig up the nice looking grave with the fancy text"],
["Hehe, thanks for everything", "This game may be more interesting that you think",
"Why don't you keep on playing?", "I guarantee that you will find this a very nice experience"],
["IT'S TOO LATE fluff=2"]];
function cbMsg(load){
if (vars.btnclicks1==100){vars.cbtrack=vars.fluffval;}
if (vars.btnclicks1>=100&&vars.cbmsg<cbmsgs[vars.cbtrack].length){
document.getElementById("cbmsg").innerHTML=cbmsgs[vars.cbtrack][vars.cbmsg];
}
else if (vars.cbmsg>cbmsgs[vars.cbtrack].length){
findegg(17);
}
}
var ruglist = "3311020254";//Konami
function rugClick(rug){
if (rug == parseInt(ruglist[vars.rughousestate])){
vars.rughousestate++;
alert("You hear a satisfying click");
}
else {
vars.rughousestate=0;
alert("A Klaxon beeps in dissent");
}
if (vars.rughousestate >= ruglist.length){
if (vars.rughousestage==0){
findegg(11);
}
else if (vars.rughousestage==1){
findegg(12);
}
else if (vars.rughousestage==2){
findegg(13);
}
}
}
function cemeteryLighten(load){
var fogIndex = 6;
if (!load){
vars.cemeteryopacity-=0.1;
}
if (vars.cemeteryopacity<=0){
hide("cemeteryfog",[5,fogIndex]);
}
else{
locations[5].obj[fogIndex].style="transform:translate(-50%,-50%);width:100%;opacity:"+vars.cemeteryopacity+";";
if (!load){
document.getElementById("cemeteryfog").style.opacity=vars.cemeteryopacity;
}
}
}
function lighthouseLighten(load){
var fogIndex = 0;
if (!load){
vars.lighthouseopacity-=0.5;
}
if (vars.lighthouseopacity<=0){
hide("lighthousefog",[8,fogIndex]);
}
else{
locations[8].obj[fogIndex].style="transform:translate(-50%,-50%);width:100%;opacity:"+vars.lighthouseopacity+";";
if (!load){
document.getElementById("lighthousefog").style.opacity=vars.lighthouseopacity;
}
}
}
var octopusmsgs = ["Oooh, it's an octopus!","Octopus says hi","Octopus wants to know what you want","Octopus wants you to stop bugging him",
"Octopus is getting annoyed","Octopus has left the server."];
//messages
var fluffscreentext = [
["112358"],
["hm","hmm","hmmm","hmmmm","hmmmmm","hmmmmm.","hmmmmm..","hmmmmm...","hmmmmm....","hmmmmm.....","hmmmmm......","hmmmmm......?"
,"lol XD","I don't know what that was hehe","nothing in particular happened","I guess you get an egg \n <strong>-.-</strong>","ummm ... wait that isn't an egg"
,"uhhhh let's just move on","go south to the River's End","There are fun islands to explore there",":)"],
[],
[]
];
//transform visually
var fluffscreentrans = [
[],
[0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,2,3,4
,4.5,0,0,0.4,0
,0,0,0.1,4],
[],
[]
];
var fluffscreenid = -1;
function fluffScreen(i){
document.getElementById("fluffup").innerHTML = "<p class='fluffmsg' onclick='fluffScreen(" +(i + 1)+ ");'>"+fluffscreentext[vars.fluffval][i]+"</p>";
if (i > fluffscreentext[vars.fluffval].length){
document.getElementById("fluffup").innerHTML = "<p class='fluffmsg' onclick='fluffScreen(" +(i + 1)+ ");'>"+spasmText("undefined")+"</p>";
}
fluffscreenid++;
}
var rt = setInterval(()=>{
if (document.getElementById("page6").style.display=="inline"){
randTransform("fluffup",fluffscreentrans[vars.fluffval][fluffscreenid]);
}
},10);
</script>
<script src="/eastergame/Code/save.js"></script>
<script src="/eastergame/Code/init.js"></script>
<script src="/eastergame/Code/location.js"></script>
<script src="/eastergame/Code/effects.js"></script>
<script src="/eastergame/Code/util.js"></script>
<script src="/eastergame/Code/eggs.js"></script>
</body>