-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (27 loc) · 822 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Pong</title>
<link rel="icon" type="image/ico" href="favicon.ico" />
</head>
<body>
<h1>Pong Wars</h1>
<audio id="pongSound1">
<source src="./sounds/pong-01.wav" type="audio/wav">
</audio>
<audio id="pongSound2">
<source src="./sounds/pong-02.wav" type="audio/wav">
</audio>
<audio id="pongSound3">
<source src="./sounds/pong-03.wav" type="audio/wav">
</audio>
<!-- render game here -->
<canvas id="game" style="background-color: black;"></canvas>
<div class="players">
<span>P1</span>
<span>P2</span>
</div>
<script type="text/javascript" src="build/bundle.js"></script>
</body>
</html>