-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 1.83 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
<!DOCTYPE html>
<html>
<head>
<title>3D Stacking Game</title>
<style>
body {
margin: 0;
}
#stars{
position: absolute;
top: 6ch;
right: 1ch;
}
#score {
position: absolute;
top: 1ch;
left: 1ch;
color: white;
font-family: Arial, sans-serif;
font-size: 6ch;
text-shadow: 2px 2px 4px black;
}
#gameOver {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: Arial, sans-serif;
font-size: 8ch;
display: none;
text-shadow: 2px 2px 4px black;
}
#retryButton {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px 20px;
font-size: 4ch;
background-color: white;
border: none;
border-radius: 5px;
cursor: pointer;
display: none;
}
#retryButton:hover {
background-color: #f0f0f0;
}
</style>
</head>
<body>
<iframe id="stars" src="https://ghbtns.com/github-btn.html?user=chtholine&repo=Stacking_Game&type=star&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
<div id="score">Score: 0</div>
<div id="gameOver">Game Over!</div>
<button id="retryButton">Retry</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/18.6.4/tween.umd.js"></script>
<script src="game.js"></script>
</body>
</html>