-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (80 loc) · 3.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookie Game</title>
<link rel="stylesheet" href="./style/main-style.css" />
<link rel="stylesheet" href="./style/instructions.css">
<link rel="stylesheet" href="./style/recipe-ingredients.css">
<link rel="stylesheet" href="./style/status-indicators.css">
<link rel="icon" href="./Images/cookie-player.png" type="image/x-icon">
</head>
<body>
<div id="board"></div>
<div id="life-counter">
<div id="hearts"></div>
<div id="shield-indicator">
<img id="shield-icon" src="./Images/shield.png" alt="Shield" />
<span id="shield-text">Shield: Available</span>
</div>
<!-- Left side Screen -->
<div id="timer">
<img id="timer-icon" src="./Images/timer.png" alt="Timer" />
<span id="time-text">Time: </span>
<span id="timer-counter">40</span>
</div>
<!-- Recipe-->
<div id="recipe-display">
<p id="recipe-instructions">List of Ingredients:</p>
<ul id="recipe-list">
<li class="ingredient-recipe" data-ingredient="flour">
<img src="./Images/flour.png" alt="Flour" class="ingredient-img" />
</li>
<li class="ingredient-recipe" data-ingredient="milk">
<img src="./Images/milk.png" alt="Milk" class="ingredient-img" />
</li>
<li class="ingredient-recipe" data-ingredient="egg">
<img src="./Images/egg.png" alt="Egg" class="ingredient-img" />
</li>
<li class="ingredient-recipe" data-ingredient="chocolate">
<img src="./Images/chocolate.png" alt="Chocolate" class="ingredient-img" />
</li>
</ul>
</div>
<!-- Instruction How to Play -->
<div id="instructions-message">
<h1>Time to Cook!</h1>
<ul>
<li>Use the arrow keys to move the player left and right.</li>
<li>Collect the ingredients needed for the recipe shown on the screen.</li>
<li>Avoid obstacles that may decrease your life count.</li>
<li>If you collect an ingredient you already have, you lose a life.</li>
<li>Press the space bar to shield the cookie from flames!</li>
<li>If you collect an ingredient you already have, you lose a life.</li>
<li>Complete the recipe by gathering all required ingredients to win!</li>
</ul>
<button id="start-game-button">Start Game</button>
<img id="instruction-image" src="./Images/cookie-instructions.png" alt="Image player reading" />
</div>
<!-- Game Over -->
<div id="game-over-message">
<img id="game-over-icon" src="./Images/cookie-game-over.png" alt="Game Over" />
Game Over
<button class="start-again-button">Start Again</button>
</div>
<!-- Victory -->
<div id="victory-message">
<img id="victory-icon" src="./Images/cookie-win.png" alt="Trophy" />
You Win!
<button class="start-again-button">Start Again</button>
</div>
<!-- Scripts -->
<script src="./javascript/sound.js"></script>
<script src="./javascript/obstacle.js"></script>
<script src="./javascript/recipe-ingredients.js"></script>
<script src="./javascript/player.js"></script>
<script src="./javascript/main.js"></script>
</body>
</html>