-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (41 loc) · 1.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Crystal Collector</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<div><h1>Crystal Collector</h1></div>
<div class="instruction">
<ol>
<h2>Instructions</h2>
<li>You will be given a random number at the start of the game.</li>
<li>There are four crystals below. By clicking on a crystal you will add a specific amount of points to your total score.</li>
<li>You win the game matching your total score to random number, you lose the game if your total score goes above the randon number.</li>
<li>The value of each crystal is hidden from you untill you click on it.</li>
<li>Each time when the game starts, the game will change the value of each crystal.</li>
</ul>
</div>
<div class="randomScore">
<div id="random"></div>
<div id="score">Score board</div>
</div>
<div class="crystalsDisplay">
<img id="amberCrystal" class="crystal" src="assets/images/amberCrystal.png">
<img id="blueCrystal" class="crystal" src="assets/images/blueCrystal.png">
<img id="greenCrystal" class="crystal" src="assets/images/greenCrystal.png">
<img id="redCrystal" class="crystal" src="assets/images/redCrystal.png">
</div>
<div class="total">
Your total score is
<div id="total-score">Total Score</div>
</div>
<footer>
<p>Copyright © 2017 Radhika Sivarajan</p>
</footer>
<script src="assets/javascript/gameObj.js"></script>
</body>
</html>