-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (45 loc) · 1.46 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
<!DOCTYPE html>
<html>
<head>
<title>
JPong
</title>
<meta name="description" content="Re-make of the classic pong game">
<meta name="author" content="HMG">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- Cascading Stylesheet -->
<link type="text/css" rel="stylesheet" href="JPong.css">
</head>
<body>
<div class="header">
<h1>JPong</h1>
<h2>Developed by Josh and the HMG team.</h2>
</div>
<!-- DRAWS THE CANVAS -->
<div class="canvas">
<canvas id="canvas" height="500" width="500" style="border:1px solid black">
Your browser does not support canvas element.
</canvas>
</div>
<div class="instructions">
<p>Beat the computer by hitting the ball with your paddle. Use the arrow keys to move left and right. Don't let the ball through!</p>
</div>
<div class="footer">
<p><span>Opensource HMG 2014</span></p>
</div>
<!--Calls the audio files-->
<audio id="blop">
<source src="Blop.wav"> </source>
<source src="Blop.mp3"> </source>
</audio>
<audio id="tick">
<source src="Tick.wav"> </source>
<source src="Tick.mp3"> </source>
</audio>
<!--Runs Javascript files-->
<script type="text/javascript" src="Keycodes.js"></script>
<script type="text/javascript" src="JPong.js"> </script>
</body>
</html>