-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (48 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
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style/style.css" />
<title>Portuguese Food Ninja</title>
</head>
<body>
<main id = "main">
<!-- Start Screen - Initially shown on the screen-->
<div id="game-start">
<div id = "heading">
<h1>Portuguese Food Ninja</h1>
<img src="./images/ninja (1).png" alt="" class="start-image">
</div>
<div id = "instructions">
<div id=" paragraphs">
<p>Click on all the food that appears on the screen. You have 5 lives. If you miss a food, you loose a life.</p>
<p> <img id = "bomb" src="./images/bomb2.png"> You have 5 seconds to click a bomb, otherwise it explodes and the game ends. </p>
<p> <img id = "rooster" src="./images/rooster3.png"> If you click a rooster, you gain a life.</p>
</div>
<button id="start-button"><span id="circle">Start Game</span></button>
</div>
</div>
<div id="game-container">
<div id = "score-lives">
<p class="score-lives-frame">Score: <span id="score">0</span></p>
<p class="score-lives-frame">Lives: <span id="lives">3</span></p>
</div>
<!-- Game-screen - initially hidden using CSS -->
<div id="game-screen"></div>
</div>
<!-- Game-end - initially hidden using CSS -->
<div id="game-end">
<!-- <img src="./images/spilled-wine.png" alt="" class="end-image"> -->
<h1 id="game-end-message"></h1>
<button id="restart-button">Restart</button>
</div>
</main>
<script src="javascript/movingItem.js"></script>
<script src="javascript/food.js"></script>
<script src="javascript/bomb.js"></script>
<script src="javascript/life.js"></script>
<script src="javascript/game.js"></script>
<script src="javascript/script.js"></script>
</body>
</html>