-
Notifications
You must be signed in to change notification settings - Fork 68
/
index.html
46 lines (46 loc) · 924 Bytes
/
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
<!doctype html>
<html>
<head>
<title>Game</title>
<style>
body {
background-color: black;
}
#gameCanvas {
background-color: black;
width: 640px;
height: 360px;
margin: auto;
align: center;
}
#scoreboard {
text-align: center;
font-family: Segoe UI, Helvetica, Ubuntu, sans-serif;
color: white;
}
#scores {
font-size:600%;
padding:0;
margin:0;
color: white;
}
#title {
background-color: white;
color: black;
}
</style>
</head>
<body onload='setup();'>
<div id='gameCanvas'></div>
<script src='./Scripts/three.min.js'></script>
<script src='./Scripts/keyboard.js'></script>
<script src='./Scripts/game.js'></script>
<div id='scoreboard'>
<h1 id='scores'>0-0</h1>
<h1 id='title'>3D PONG</h1>
<h2 id='winnerBoard'>First to 7 wins!</h2>
<h3>A - move left
<br>D - move right</h3>
</div>
</body>
</html>