-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (61 loc) · 3.24 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Arcade Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet prefetch">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet prefetch">
</head>
<body>
<header class="header">
<h1>Arcade Game</h1>
</header>
<main>
<section>
<div id="score-panel" class="score-panel flex">
<button id="myBtn" class="btn">Start</button>
<ul class="lives">Lives:
<li class="heart"><img src="images/Heart.png"></li>
<li class="heart"><img src="images/Heart.png"></li>
<li class="heart"><img src="images/Heart.png"></li>
</ul>
<div class="score"><span>Score:</span>
<ul id="points" class="points">0</ul>
</div>
<div class="restart">
<i class="fa fa-repeat"></i>
</div>
</div>
</section>
<!--start-modal game-->
<section id="myModal" class="start_modal">
<h2>Choose your Player</h2>
<img src="images/char-cat-girl.png" alt="char-cat-girl-img" class="catGirl">
<img src="images/char-boy.png" alt="char-boy-img" class="boyChar">
<img src="images/char-horn-girl.png" alt="char-horn-girl-img" class="hornGirl">
<img src="images/char-pink-girl.png" alt="char-pink-girl-img" class="pinkGirl">
<img src="images/char-princess-girl.png" alt="char-princess-girl-img" class="princessGirl">
<div>
<input type="radio" name="choice" id="cat" onclick="choosePlayer(this.value)" value="cat"> <span class="cat-span">Cat</span>
<input type="radio" name="choice" id="boy" onclick="choosePlayer(this.value)" value="boy"><span class="boy-span">Boy</span>
<input type="radio" name="choice" id="horn" onclick="choosePlayer(this.value)" value="horn"> <span class="horn-span">Horn</span>
<input type="radio" name="choice" id="pink" onclick="choosePlayer(this.value)" value="pink"><span class="pink-span">Pink</span><input type="radio" name="choice" id="princess" onclick="choosePlayer(this.value)" value="princess"><span class="princess-span">Princess</span>
</div>
<section id="gameRules" class="rules-modal">
<h2>Game rules:</h2>
<p class="rules">Use the arrow keys to move player.</p>
<div class="arrows"><span> ← </span> <span> ↑ </span> <span> ↓ </span><span> → </span> </div>
<p class="rules">Cross the grass = 1 point.</p>
<p class="rules">Player will be reset if you collide with a ladybird</p>
<p class="rules">Game Win = collect 5 points.</p>
</section>
</section>
<canvas class="canvas"></canvas>
</main>
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
</body>
</html>