-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
389 lines (342 loc) Β· 11.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Metaverse</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
html,
body {
height: 100%;
}
body {
margin: 0;
padding: 0;
background: #222;
color: #eee;
font: caption;
}
#version {
position: absolute;
left: 5px;
top: 605px;
}
iframe {
position: absolute;
width: 340px;
height: 640px;
border: 2px solid;
top: 50px;
left: 190px;
border-radius: 15px;
padding: 10px;
background-color: black;
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.buttonStop {
box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 10px, rgba(0, 0, 0, 0.12) 0px -12px 10px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
position: absolute;
top: 670px;
left: 250px;
color: #fff !important;
text-transform: uppercase;
font-size: 18px;
text-decoration: none;
background: #434345;
padding: 20px 40px;
border-radius: 50px;
display: inline-block;
border: none;
transition: all .4s ease 0s;
margin: 50px;
}
.buttonStop:hover {
text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);
-webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
-moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
transition: all 0.4s ease 0s;
}
.buttonStop:active {
box-shadow: 0 5px #666;
transform: scale(0.9);
}
.quest-wrap {
height: 400px;
width: 300px;
background-color: whitesmoke;
border-radius: 10px;
padding: 10px;
color: grey;
font-weight: bold;
display: flex-col;
margin: 0 auto;
margin-top: 10px;
}
h1 {
margin-bottom: 25px;
padding: 10px;
border: 2px solid grey;
border-radius: 5px;
}
.quest {
background-color: rgba(150, 150, 131, 0.493);
border-radius: 10px;
text-align: justify;
margin: 3px;
margin-bottom: 10px;
padding: 8px;
}
.questSpecial {
background-color: rgba(138, 49, 118, 0.7);
border-radius: 10px;
text-align: justify;
margin: 3px;
margin-bottom: 10px;
padding: 8px;
color: whitesmoke;
}
.explanation {
/* background-color: violet; */
display: flex;
justify-content: left;
padding: 10px;
}
.organization {
width: 100%;
display: flex;
justify-content: left
}
.UI {
width: 100%;
max-width: 600px;
background-color: whitesmoke;
margin-left: 2px;
padding: 25px;
border: 1px slategrey;
display: flex;
flex-direction: column;
}
.menu {
display: flex;
justify-content: space-around;
}
button {
color: #fff !important;
font-size: 18px;
text-decoration: none;
background: #434345;
padding: 20px 40px;
border-radius: 50px;
display: inline-block;
border: none;
transition: all .4s ease 0s;
margin: 5px;
}
button:hover {
text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);
-webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
-moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
transition: all 0.4s ease 0s;
}
button:active {
box-shadow: 0 5px #666;
transform: scale(0.9);
}
.zoneQuests {
display: none;
}
.zoneAbout {
display: none;
}
.zoneCredits {
display: none;
flex-direction: column;
}
.specialQuest {
font-weight: 800;
color: black;
padding: 25px;
border: 1px solid grey;
margin-top: 25px;
}
.aboutProject {
color: gray;
text-align: center;
}
.service {
background-color: rgba(150, 150, 131, 0.493);
border-radius: 10px;
text-align: justify;
margin: 3px;
margin-bottom: 8px;
padding: 8px;
color: gray;
}
.reference {
color: gray;
padding-top: 20px;
}
.gameInfo {
margin-bottom: 25px;
padding: 10px;
border: 2px solid grey;
border-radius: 5px;
font-size: 25px;
color: gray;
text-align: center;
}
.yesNo {
margin: 150px;
display: none;
}
textarea {
resize: none;
font-size: 18px;
}
.inputText {
display: none;
flex-direction: column;
width: 100%;
margin-top: 100px;
}
.btnOk {
width: 25%;
margin: 15px auto;
}
.default {
text-align: center;
color: grey;
font-size: 50px;
margin-top: 210px;
font-weight: 800;
font-family: Indie Flower, ui-sans-serif, system-ui;
}
#titleZone {
margin-top: 25px;
padding: 5px;
border: 1px solid grey;
width: 60%;
color: grey;
text-align: center;
margin: 0 auto;
border-radius: 5px;
display: none;
}
a{
text-decoration: none;
color : rgb(85,26,139)
}
a:hover {
cursor: pointer;
}
a:visited {
color : grey
}
.credit {
background-color: rgba(150, 150, 131, 0.493);
border-radius: 10px;
text-align: justify;
margin: 5px;
margin-bottom: 18px;
padding: 20px;
color: gray;
}
.creditSpecial {
background-color: rgba(150, 150, 131, 0.493);
border-radius: 10px;
text-align: justify;
margin: 5px;
margin-bottom: 15px;
padding: 17px;
color: gray;
}
</style>
</head>
<body>
<div class="organization">
<div id="game"></div>
<div class="UI">
<div class="menu">
<div> <button class="btnGame"> Game π²</button> </div>
<div><button class="btnQuests"> Quests π</button></div>
<div><button class="btnAbout"> About π€</button></div>
<div><button class="btnCredits"> Credits π</button></div>
</div>
<div class="zone">
<div class="zoneGame">
<h1 class="gameInfo">Keep this section while playing the game</h1>
<h1 class="gameInfo"> Arrows to move / Space to interact </h1>
<h2 id='titleZone'> If you see that then it's a bug :D </h2>
<div class="yesNo">
<button class="btnYes"> Yes </button>
<button class="btnNo"> No</button>
</div>
<div class="inputText">
<textarea name="message" id="message" cols="50" rows="10" placeholder="Write here"></textarea>
<button class="btnOk"> Ok </button>
</div>
<div class="quizz"></div>
<div class="default">
The metaverse is metacool
</div>
</div>
<div class="zoneQuests">
<div class="quest-wrap">
<h1 style="text-align: center"> What to do ? </h1>
<div class="quest"> Discover the community πββοΈ </div>
<div class="quest"> Write on The Wall π </div>
<div class="quest"> Play Motoko Runner πΉ </div>
<div class="quest"> Find the ghost π» </div>
<div class="quest"> Take on a quizz π¨π»βπ«</div>
<div class="questSpecial"> Open the locker... πͺ </div>
</div>
<div class="specialQuest">
Open the locker is a special mission taking place in the Internet Computer right now.
<br><br>
Contrary to all other missions, here there will be only one hero.
</div>
</div>
<div class="zoneAbout">
<div class="about-wrap">
<h1 class="aboutProject"> About this project </h1>
<div class="aboutProject">
This game was made during the first Internet Computer hackathon. This hackathon was organized by DSCVR
and it's founder Rick Porter in July 2021. <br> <br>
My goal was to experiment as much as possible with the possibilities of the network, while playing you
can directly interact with services living on the Internet Computer.
<br><br>
Here's a list of the services connected to this game :
</div>
<div class="service"> <a href="https://hpjzf-uqaaa-aaaah-aaezq-cai.ic0.app/" target="_blank"> Create your character and meet yourself and the community in the game π§ </a> </div>
<div class="service"> <a href="https://qvf2m-pyaaa-aaaah-aahga-cai.ic0.app/" target="_blank"> Write on The Wall and mark the history. β¨ </a> </div>
<div class="service"> <a href="https://afmdo-tiaaa-aaaah-aaiea-cai.ic0.app/" target="_blank"> Open the locker and become a hero forever. π¦ΈββοΈ </a> </div>
<div class="service"> <a href="https://cieun-eiaaa-aaaad-qak6a-cai.raw.ic0.app/" target="_blank"> Drive your Motoko like a pro by Lucas Monteiro π </a> </div>
<div class="service"> Join the Motoko School and learn together (To come!) </div>
<div class="reference"> This game is also an hommage to this early community and all the people building
and experimenting day after day. <br> <br>
If you've been around during the past few months there is probably a reference to you or some project related to you :)
<br> <br> If you feel forgotten, I'm sorry, we are already so many! <br> But this is no excuse, create your character and join us in the
Metaverse...! See you there. π
</div>
</div>
</div>
<div class="zoneCredits">
<h1 style="color: grey; text-align: center;"> Thanks </h1>
<div class="credit"> Audio π΅ <br> Contains music Β©2021 Joshua McLean (https://joshua-mclean.itch.io) <br>
Licensed under Creative Commons Attribution 4.0 International </div>
<div class="credit"> Sprites πΎ <br> Thanks to Lime Zu : <a href="https://ourcade.co/" target="_blank">https://limezu.itch.io/</a> </div>
<div class="credit"> Framework π : <br> This game was made using Motoko and Phaser/Typescript. <br>
A huge thanks to <a href="https://ourcade.co/" target="_blank"> Ourcade </a> and his tutorials who saved my life. </div>
<div class="credit"> Thanks to Lucas Monteiro who gave his permission to include <a href="https://h5aet-waaaa-aaaab-qaamq-cai.raw.ic0.app/post/110010/motoko-runner" target="_blank"> Motoko Runner </a> here! </div>
<div class="creditSpecial"> Creator : <a href="https://twitter.com/ThuillierSbast3" target=_blank style="color:rgb(85,26,139);"> Seb </a>if you've liked the game, detected a bug (highly probable!) or just want to talk, reach me!</div>
</div>
</div>
</div>
</div>
<script type="module" src="/src/frontend/src/basic.ts"></script>
<script type="module" src="/src/frontend/src/main.ts"></script>
</body>
</html>