-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (57 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8"/>
<title>
Ping pong
</title>
<link rel="stylesheet" href="css/style.css"/>
</head>
<body onload="initGameLoop()">
<div id="scoreboard" class="container">
<h3>scoreboard</h3>
<hr>
<div id="scores">
<div>
BOT:
<span id="botScore">0</span>
</div>
<div>
YOU:
<span id="playerScore">0</span>
</div>
</div>
<div class="container" onclick="toggleSound()">
<img src="assets/icons/sound_on.png" alt="sound" id="sound">
</div>
<div id="debug"></div>
</div>
<div id="field" class="container">
<div class="racket" id="bot">
BOT
</div>
<div class="ball" id="ball"></div>
<div class="racket" id="player">
YOU
</div>
</div>
<div id="howto" class="container">
Use <kbd>←</kbd><kbd>→</kbd> keys to control the racket.
Press <kbd>Esc</kbd> to pause the game;
</div>
<div id="paused">
PAUSED
</div>
<div id="menu">
<div class="menuHeader">Choose game mode</div>
<div class="menuItem" id="sp">
SINGLE PLAYER
</div>
<div class="menuItem" id="mp">
MULTIPLAYER
</div>
</div>
<div id="overlay"></div>
</body>
<script src="pong.js"></script>
</html>