-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (52 loc) · 2.05 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
<!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="styles/main.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
<title>NinjaFruitGame</title>
</head>
<body>
<canvas id="canvas"></canvas>
<div class="startGame" id="startGame">
<img src="images/image.png">
<div class="home">
<h1>Fruit Ninja Game </h1>
<button id="startGameBtn">Start</button>
<p class="Pgameover">Your Highest Score: <span id="homeHighScore"></span></p>
</div>
<!-- Audio Control -->
<div class="sound-control">
<span class="sound-text">Sound</span><button id="muteButton"><i class="fas fa-volume-up"></i></button>
<audio id="audio" src="audio/background-music.mp3" autoplay loop></audio>
</div>
<!--Audio Control-->
</div>
<div class="countDown" id="countDownContainer">
<h1></h1>
</div>
<div id="insideGameContainer">
<div class="scoreDiv">
<p>Current Score: <span id="score">0</span></p>
<p>Highest Score: <span id="highScore">0</span></p>
</div>
<div class="gameCountTime">
<img id="chance1" src="images/x.png" alt="Chance 1" />
<img id="chance2" src="images/xx.png" alt="Chance 2" />
<img id="chance3" src="images/xxx.png" alt="Chance 3" />
</div>
<div id="strikeCountDiv">
<h1 class="strikeCount">1x</h1>
</div>
</div>
<div id="gameEndDiv">
<div class="gameEndContainer">
<img src="images/black_background_game_over_hd_game_over.jpg" class="Pgameover" style="width: 330px; height: 200px;opacity: 0.9; transition: cubic-bezier(0.075, 0.82, 0.165, 1); border-radius: 50%;"></img>
<p class="Pgameover">Your Score: <span id="endGameScore">0</span></p>
<button id="restartGame">Restart Game</button>
</div>
</div>
<script src="scripts/main.js"></script>
</body>
</html>