-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·47 lines (42 loc) · 1.36 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
<!doctype html>
<html>
<head>
<title>Game</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/animate.css">
</head>
<body onload='setup();'>
<div id='gameCanvas'>
<div id='scoreboard'>
<h1 id='title'>CRAZY BALL</h1>
<div id="score-container">
<div id='player-name' class='names'>YOU</div>
<div id='cpu-name' class='names'>CPU</div>
<div id='player-points' class='scores'>0</div>
<div id='cpu-points' class='scores'>0</div>
</div>
<div id="scores"></div>
</div>
<div id='instructions'>
<h2 id='winnerBoard'>First to 5 wins!</h2>
<p>SPACE: start a new round</p>
<p>A: move left</p>
<p>D: move right</p>
<p>S: jump</p>
<p>Level:
<select name="level" id="level" onchange=setDifficulty(this.value)>
<option value="1" selected>Easy</option>
<option value="2">Medium</option>
<option value="3">Hard</option>
</select>
</p>
</div>
</div>
<script src='scripts/three.min.js'></script>
<script src='scripts/keyboard.js'></script>
<script src='scripts/game.js'></script>
<audio id="beep" src="sounds/ping_pong_8bit_beeep.ogg" preload="auto"></audio>
<audio id="peep" src="sounds/ping_pong_8bit_peeeeeep.ogg" preload="auto"></audio>
<audio id="plop" src="sounds/ping_pong_8bit_plop.ogg" preload="auto"></audio>
</body>
</html>