-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpong.html
32 lines (32 loc) · 1.33 KB
/
pong.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
<!doctype html>
<head>
<meta charset = "UTF-8">
<title>Pong</title>
<link href = "pong.css" type = "text/css" rel = "stylesheet">
</head>
<body onLoad="start()">
<div id="score">SCORES</div>
<div id ="match"><div id="red"> 00 </div> : <div id="green"> 00 </div></div>
<div id = "instructions">
<h1> INSTRUCTIONS: </h1>
<p> 1. PLAYER ONE uses the LEFT paddle. <br />
2. PLAYER TWO uses the RIGHT paddle. <br />
</p>
<h3> PLAYER ONE: </h3>
<p> 1. Use W key to move your paddle UP. <br />
2. Use S key to move your paddle DOWN.<br />
</p>
<h3> PLAYER TWO: </h3>
<p> 1. Use UP arrow to move your paddle UP. <br />
2. Use DOWN arrow to move your paddle DOWN.<br />
</p><br />
<p> <strong> The player who first gets to 15 points wins the game. </strong></p><br />
<button type="button" onClick="main()">START THE GAME</button>
<button type="button" onClick="pause()">PAUSE THE GAME</button>
</div>
<script src = "pong.js" type = "text/javascript"></script>
<div id = "made">
Made with <div id = "heart"> ♥ </div> by Kartik
</div>
</body>
</html>