-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.54 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title>Key Rush</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&display=swap" rel="stylesheet">
</head>
<body>
<audio src="./assets/audio/bgmusic.mp3" id="background_music"></audio>
<audio src="./assets/audio/cube_destroyed.wav" id="cube_destroyed_music"></audio>
<audio src="./assets/audio/game_over.wav" id="game_over"></audio>
<div id="displayText">
<div class="innerContent">
Current Score = <span id="currentScore"></span>
</div>
<div class="innerContent">
HighScore = <span id="highScore"></span>
</div>
</div>
<div id="startGame">
<h4>Instructions:</h4>
<h5>Cubes with various letters engraved on them will come towards you from variable positions and with variable speeds</h5>
<h5>Press the corresponding key on the keyboard to destroy them</h5>
<h5>Let one cube reach your screen and its <span id="glitch">GAME OVER</span></h5>
<h5>Also pressing an incorrect key will decrease your score</h5>
<h3><span id="catb">Click anywhere to begin</span></h3>
</div>
<div id="endGame">
<h2>GAME OVER!</h2>
<h3>Your Score : <span id="endscore"></span></h3>
<h3>HighScore : <span id="endhighscore"></span></h3>
<button id="butt" onclick="window.location.reload()">Play Again</button>
</div>
<script defer type="module" src="js/main.js"></script>
</body>
</html>