-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
227 lines (217 loc) · 6.57 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
<html>
<title>Amnesia MBF DEV</title>
<head>
<meta charset='UTF8'>
<style>
.comment{
display: none;
}
.videosize {
position: absolute;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.canvas{
align-items: center;
}
head, body{
background: #000000;
}
p1{
color: #66ff66;
font-size: 150px;
font-family: 'retro';
top: 50px;
letter-spacing: 1px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
p2{
color: #66ff55;
font-size: 30px;
font-family: 'retro';
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
p10{
color: #66ff55;
font-size: 50px;
font-family: 'retro';
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
p4{
color: #66ff66;
font-size: 50px;
font-family: 'retro';
letter-spacing: 1px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
p9{
color: #66ff66;
font-size: 30px;
font-family: 'retro';
letter-spacing: 1px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@font-face {
font-family: retro;
src: url(resources/fonts/retro.ttf);
}
.test{
text-align: center;
}
.stbtn,.setbtn,.ntr{
border: none;
background: transparent;
outline: none;
transition: 800ms;
}
.stbtn:hover,.setbtn:hover,.ntr:hover{
letter-spacing: 10px ;
cursor: pointer;
}
.nametxt{
font-size: 50px;
color: lightgreen;
border: 3px solid #66FF55;
background: transparent;
width: 400px;
height: 50px;
text-align: center;
border-radius:100px;
}
.nametxt:focus{
outline: none;
}
.button1,.button2,.button3{
position:absolute;
top:0;
left:0;
bottom:0;
right:0;
height:100%;
width:100%;
}
</style>
</head>
<body>
<div class="comment">warning screen</div>
<div style="display:flex; flex-direction: column;"id="wrn">
<div style="text-align:center;">
<br><br><br><br><br><br><br><br><br><br><br>
<p4>WARNING</p4>
</div>
<div style="text-align:center;">
<p9>The following game may induce epilepsy.</p9>
<br>
<p9>Play at your own risk.</p9>
</div>
<div style="text-align: center">
<br>
<button class="stbtn" onClick="next();"value="Start"><p2>GO</p2></button>
<br><br>
</div>
<br>
</div>
<div class="comment">menu screen</div>
<div id="scrn1" style="display: none; flex-direction: column;">
<br><br><br><br><br><br><br><br><br><br><br><br>
<div style="text-align: center;">
<p1><span id="wname"></span></p1>
<br>
</div>
<div style="text-align: center;"class="test">
<button class="stbtn" id="s1"onClick="next1();"><p10>Start Game</p10></button>
<button class="setbtn" style="disabled display: none;"id="block1"onClick = "Continue();"><p10>Continue</p10></button><br><br>
<button class="setbtn" style="disabled display: none;"id="block2"onClick = "reset();"><p10>Reset Game</p10></button>
</div>
<br>
</div>
<div class="comment">Name selection screen</div>
<div id="scrn2" style="display: none; flex-direction: column;">
<br><br><br><br><br><br>
<div id="nameshow" style="display: none; text-align: center;">
<p10>Your name is "<p10><span id="namediv"></span></p10>" <br><br>(you cannot change this later)</p10>
</div>
<br><br><br><br><br><br><br><br>
<div style="text-align: center">
<input style="text-align: center;"type="text" id="nametxt" class="nametxt"maxlength="11"><br><br>
</div>
<div style="text-align: center">
<button id="entrnme" style="text-align: center;" class="stbtn"onClick="entername(),this.style.display='none'"><p10>Enter Name</p10></button>
<br>
</div>
<div id="sub" style="display:none; text-align:center">
<button style="text-align: center;" class="stbtn" id="cont"onClick="startGame();"><p10>Continue</p10></button><br>
</div>
</div>
<div class="comment">text before level 1</div>
<div id="mainG1" style="display: none; text-align: center;">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id = "sc1"style="text-align: center;">
<p10>My name is <br><span id="namediv1"></span></p10><br>
<div class="button1" onClick="showNext1();">
</div>
</div>
<div id= "sc2"style="display: none;text-align: center;">
<p10>I know that.</p10><br>
<div class="button2" onClick="showNext2();">
</div>
</div>
<div id= "sc3"style="display: none; text-align: center;">
<p10>But why do I forget?</p10>
<div class="button3" onClick="showNext3();">
</div>
</div>
</div>
<div class="comment">Level 1</div>
<div id="game" style="text-align:left; display: none;">
<br><br><br><br><br><br><br>
<div style="text-align:center;">
<canvas id="canvas"></canvas>
</div>
</div>
<div class="comment">text before level 2</div>
<div id="C1"style="display: none; text-align: center; ">
<br><br><br><br><br><br><br>
<div class="videosize">
<video class="videosize" id="intro" width="100%" height="100%">
<source src="resources/animations/Amnesia-Intro-1.webm" type="video/webm" />
</video>
</div>
</div>
<div class="comment">level 2</div>
<div id="Lev2" style="text-align:left; display: none;">
<br><br><br><br><br><br><br>
<div style="text-align:center;">
<canvas id="canvas"></canvas>
</div>
</div>
<div class="comment">resources</div>
<script src="resources/scripts/main.js"></script>
<script src="resources/scripts/platformer.js">
</script>
</body>
</html>