-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (63 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.scoreboard {
z-index: 10;
position: absolute;
}
ul {
display: flex;
flex-direction: row;
list-style: none;
}
li {
margin: 10px;
color: black;
font-weight: bolder;
}
#game-over {
border: 2px solid black;
border-radius: 10px;
height: 400px;
width: 500px;
justify-content: center;
z-index: 10;
position: absolute;
margin: 150px 410px;visibility: hidden;
}
#game-over ul{
display: flex;
flex-direction: column;
margin:5px;
list-style: none;
}
</style>
</head>
<body>
<div class="scoreboard">
<ul>
<li id="time">Time: 00:00</li>
<li id="health">Health: 200 </li>
<li id="kills">Kills: 0</li>
<li id="chests">Treasure chests collected: 0</li>
<li id="score">Total Score: 0</li>
</ul>
</div>
<script src="triangle.js" type="module"></script>
<div id="game-over">
<h1 style="text-align: center;">Game Over</h1>
<ul>
<li id="time1">Time: </li>
<li id="health1">Health: </li>
<li id="kills1">Kills: </li>
<li id="chests1">Treasure chests collected: </li>
<li id="score1">Total Score: </li>
</ul>
</div>
</body>
</html>