-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (37 loc) · 2.19 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>
<head>
<meta charset="utf-8" ></meta>
<meta name="viewport" content="width=device-width, initial-scale=0.6, user-scalable=no">
<link rel="stylesheet" href="style.css">
<title>Robin Hood</title>
</head>
<body>
<canvas id="mycanvas"></canvas>
<span style="color:white">Score: <a id="score"></a></span>
<button id="restart">restart</button>
<button id="pause">Pause</button>
<button id="arrow-up">up</button>
<span id="targetz">
<ul>
<li>Use up and down arrow keys to move archer</li>
<li>Press 'P' to pause the game at any instant and press 'P' again to resume</li>
<li>Press spaceBar to shoot arrows</li>
<li>If you shoot right into the innermostCircle,+20</li>
<li>If you shoot anywhere in the second innermostcircle,+10</li>
<li>Anywhere else inside the target,you get+2</li>
<li>If your arrow touches a particular position longer,you get more points</li>
<li>If your arrow hits the star,you get score multiplied with 10</li>
<li>You've got 10 arrows!Good Luck!</li>
</ul>
</span>
<audio id="audio" src="music.wav" autostart="false"></audio>
<img src="archer.png" id="archer"></img>
<button id="arrow-down">down</button>
<img style="display:none" id="heart" src="heart.gif"></img>
<img id="farcher" src="farcher.png" style="display:none"></img>
<img style="display:none" id="male" src="male.png"></img>
<img style="display:none" id="three" src="three.png"></img>
<img style="display:none" id="minus" src="minus.png"></img>
<p style="color:white">Arrows used :<a id="arrowsused" style="color:white"></a></p>
<script src="index.js"></script>
</body>