-
Notifications
You must be signed in to change notification settings - Fork 0
/
night.html
47 lines (42 loc) · 1.09 KB
/
night.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
<!DOCTYPE html>
<html>
<head>
<title>Night</title>
<meta charset="UTF-8"/>
<style>
#gl-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#end {
color: white;
display: none;
margin: auto;
width: 100%;
height: 100%;
text-align: center;
font-size: 30px;
align-content: space-between;
padding-top: 200px;
}
</style>
</head>
<body>
<h1 style="z-index:5; position: fixed; color: crimson" id="score">Score: 0</h1>
<br>
<br>
<h1 style="z-index:5; position: fixed; color: crimson" id="life">Life: 3 </h1>
<div id="end" style="z-index:100; position: fixed;">
<p id="endText">Game Over</p>
<p id="finalScore">Score: </p>
<a href="index.html" id="restart">Click to back to main menu.</a>
</div>
<canvas id="gl-canvas" style="z-index: 1"></canvas>
<script type="module" charset="UTF-8" src="night.js"></script>
</body>
</html>