-
Notifications
You must be signed in to change notification settings - Fork 3
/
game.html
49 lines (43 loc) · 1.96 KB
/
game.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
<!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>Spacehacks</title>
<link rel="stylesheet" href="css/game.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
</head>
<body id="body" onkeydown="whichKey(event)">
<video autoplay muted loop id="myVideo">
<source src="space.mp4" type="video/mp4">
</video>
<br>
<h1 class="spacehacks-heading">Spacehacks</h1>
<div class="gameon"><br><br><br>
<div class="game">
<div id="character"></div>
<image src="./images/7.png" id="obstacle"></image>
</div><br>
<!-- <button onclick="toggleFullScreen()" >Toggle Fullscreen</button> -->
<p style="font-size: 36px; color: #ffffff;">Score: <span id="scoreSpan"></span></p><div id="gameOverScreen"><p style="color: red;" >Game Over</p><p>Your score: <span id="scoreSpan2"></span></p></p><p>
<button id="restartButton" onclick="restart()">Restart</button> </p></div>
<br>
</div>
<p style="text-align: center;"><button class="center" id="transferButton" style="display: none;">Attempt the SPACE QUIZ🚀!!</button></p>
<br><br>
<div class="eraInfoScreen">
<h1 class="eraHeader"> Facts Here </h1>
<p class="eraInfo"></p>
</div>
</div>
<br>
<!-- <div class="gameover">
<img class="goimg" src="./images/gameover.gif"></img>
<h1>Oops! You could not witness the evolution of life on earth, pls try again! :(</h1>
<button onclick="restart()">Restart</button>
</div> -->
</body>
<script src="scripts/game.js"></script>
<script src="scripts/eraInfoDisplayer.js"></script>
</html>