-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (56 loc) · 2.29 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Crystal Collector Game</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="assets/javascript/crystal.js"></script>
<link href="https://fonts.googleapis.com/css?family=Amatic+SC|Indie+Flower|Playfair+Display|Poppins|Quicksand|Raleway|Work+Sans" rel="stylesheet">
</head>
<body>
<div class="row">
<div class="col-md-12 title">
Crystal Collector Game
</div>
</div>
<div class="row">
<div class="col-md-12 subtitle">
How to Play the Crystal Collector Game
</div>
</div>
<div class="row">
<div class="col-md-12 instructions">
- You will be given a random number at the start of the game.
<br/>
- There are four crystals below. By clicking on a crystal, you will add a specific amount of points to your total score.
<br/>
- You win the game by matching your total score to the random number. You lose the game if your total score goes above the random number.
<br/>
- The value of each crystal is hidden from you until you click on it.
<br/>
- Each time when the game starts, the game will change the values of each crystal.
</div>
</div>
<div class="row">
<div class="col-md-12 crystals">
<p class="subtitle">Click on the Crystals to Play!</p>
<br/>
<img src="assets/img/redCrystal.png" id="red" width="100" height="100" alt="Red Crystal"/>
<br/>
<img src="assets/img/blueCrystal.png" id="blue" width="100" height="100" alt="Blue Crystal"/>
<br/>
<img src="assets/img/yellowCrystal.png" id="yellow" width="100" height="100" alt="Yellow Crystal"/>
<br/>
<img src="assets/img/greenCrystal.png" id="green" width="100" height="100" alt="Green Crystal"/>
</div>
<div class="col-md-12 scoreRecord">
<p class="subtitle2">Number to Win:</p> <span id="randomNumber" class="score"></span>
<p class="subtitle2">Your Score:</p> <span id="totalScore" class="score"></span>
<p class="subtitle2">Wins:</p> <span id="numberOfWins" class="score"></span>
<p class="subtitle2">Losses:</p> <span id="numberOfLosses" class="score"></span>
</div>
</div>
</body>
</html>