-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
69 lines (69 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
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<title>Game by Amin Gholami</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: black;
background-image:url("./bg/bg.png");
margin:0;
padding:0;
}
#gameCanvas {
background-color: black;
width: 960px;
height: 540px;
margin: auto;
align: center;
}
#scoreboard {
text-align: center;
font-family: Segoe UI, Helvetica, Ubuntu, sans-serif;
color: white;
}
#scores {
background-color: white;
color: black;
font-size:72px;
line-height:55px;
margin:20px auto;
padding:0 0 5px 0;
width:960px;
}
#help{
position:absolute;
right:50px;
top:50px;
}
audio{
display:none;
}
.red{
color:#FF4045;
}
.blue{
color:#1B32C0;
}
</style>
</head>
<body onload='setup();'>
<div id='gameCanvas'></div>
<script src='./scripts/three.min.js'></script>
<script src="./scripts/stats.min.js"></script>
<script src='./scripts/keyboard.js'></script>
<script src='./scripts/game.js'></script>
<audio id="ding" src="./scripts/ding.mp3"></audio>
<div id='scoreboard'>
<h1 id='scores'><span class='red'>0</span>-<span class='blue'>0</span></h1>
<h2 id='winnerBoard'></h2>
<h2 id='pause'>Press <span style="color:red">ENTER</span> to start</h2>
<h3 id="help">
Turn Pike [<span style="color:red">SPACE</span>]
<br>Movement [<span style="color:red">Key Arrows</span>]
<br><small>Pause/Break [<span style="color:red">ENTER</span>]</small>
<br><small>Camera [<span style="color:red">C</span>]</small></h3>
</div>
</body>
</html>