-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.html
66 lines (62 loc) · 2.1 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<title>GuessDodger</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="healthstyles.css">
<link rel="stylesheet" href="playerstyles.css">
<script defer src="script.js"></script>
<script src="healthlogic.js"></script>
<script src="healthlogic2.js"></script>
</head>
<body>
<div class="GameElements" draggable="false">
<img src = "./public/player.png" class="Player">
<img src = "./public/devil.png" class="Devil">
</div>
<div class="Images">
<img src="./public/space.jpg" class="Space" draggable="false" />
<div id="ImageContainer" draggable="false">
<img src="./public/title1.png" class="Title Resize" />
<img src="./public/sky.jpg" class="Sky Resize" />
<img src="./public/ground.webp" class="Ground Resize" />
<img src="./public/heart.png" class="Healthlogo">
<img src="./public/heart.png" class="Healthlogo2">
</div>
</div>
<div class = "HealthUI">
<div class = "HealthBar" id = "health"></div>
<script src = "healthlogic.js"></script>
</div>
<div class = "HealthUI2">
<div class = "HealthBar2" id = "health2"></div>
<script src = "healthlogic2.js"></script>
</div>
<div class="game-container">
<div id="game-status">
<form id="guess-form">
<p>Guess a number between 1 and 10:</p>
<input
type="number"
id="guess-input"
min="1"
max="10"
placeholder="Enter your Guess here"
/>
<button type="button" onClick="checkGuess()">Guess</button>
</form>
<p id="message"></p>
<p id="status"></p>
<p>Lives Remaining: ❤️ <span id="lives">5</span></p>
</div>
</div>
<div class="MainMenu">
<button id="MuteButton">Unmute</button>
</div>
<audio id="BackgroundAudio" loop>
<source src="./public/bgaudio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<script src="script.js"></script>
</body>
</html>