forked from udacity/frontend-nanodegree-arcade-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (102 loc) · 3.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Effective JavaScript: Frogger</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section class="overlay">
<section class="game-choices modal">
<section class="player-choice">
<form class="choices">
<h1>Welcome!</h1>
<p>
Collect <em><strong>10</strong></em> or more <em><strong>stars</strong></em>,
<em><strong>keys</strong></em> and/or <em><strong>hearts</strong></em>
in <em><strong>2 minutes!</strong></em>
</p>
<p>
<strong><em>Note:</em></strong> This game requires a keyboard and is optimized
for large screens (900px or more).
</p>
<fieldset>
<legend>Choose your player's icon</legend>
<label>
<input type="radio" name="player" id="boy" value="boy" checked>
<img src="images/char-boy-crop.png" alt="boy">
</label>
<label>
<input type="radio" name="player" id="cat-girl" value="cat-girl">
<img src="images/char-cat-girl-crop.png" alt="cat girl">
</label>
<label>
<input type="radio" name="player" id="horn-girl" value="horn-girl">
<img src="images/char-horn-girl-crop.png" alt="horn girl">
</label>
<label>
<input type="radio" name="player" id="pink-girl" value="pink-girl">
<img src="images/char-pink-girl-crop.png" alt="pink girl">
</label>
<label>
<input type="radio" name="player" id="princess-girl" value="princess-girl">
<img src="images/char-princess-girl-crop.png" alt="princess girl">
</label>
</fieldset>
<button type="submit" name="start">Start Game</button>
</form>
</section>
</section>
</section>
<section class="game-container">
<section class="metrics">
<section class="timer red-text">
<span class="hour">00</span>:<span class="minute">00</span>:<span class="second">00</span>
</section>
<section class="collectibles">
<section class="collectible">
<div>
<img src="images/Star-crop.png" alt="Star collectible">
</div>
<p>
X<span class="star count">0</span>
</p>
</section>
<section class="collectible">
<div>
<img src="images/Key-crop.png" alt="Key collectible">
</div>
<p>
X<span class="key count">0</span>
</p>
</section>
<section class="collectible">
<div>
<img src="images/Heart-crop.png" alt="Heart collectible">
</div>
<p>
X<span class="heart count">0</span>
</p>
</section>
</section>
</section>
<section class="canvas"></section>
<section class="game-end">
<section>
<p class="total">Total: <span></span></p>
<p class="message green-text"></p>
<section>
<button type="button" name="restart">Restart</button>
</section>
</section>
</section>
</section>
<section>
<p><a href="https://github.com/CodeWithOz/ArcadeGame">Click here</a> for source code</p>
</section>
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
</body>
</html>