-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (92 loc) · 3.09 KB
/
Copy pathindex.html
File metadata and controls
99 lines (92 loc) · 3.09 KB
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
90
91
92
93
94
95
96
97
98
99
<html>
<head>
<title>S P A C E</title>
<link href='https://fonts.googleapis.com/css?family=Play' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/hud.css">
<link rel="shortcut icon" href="favicon.png" />
<script type="text/javascript" src="libs/three.min.js"></script>
<script type="text/javascript" src="libs/threex.planets.js"></script>
<script type="text/javascript" src="libs/mousetrap.min.js"></script>
<script type="text/javascript" src="libs/threex.atmospherematerial.js"></script>
<script type="text/javascript" src="libs/howler.min.js"></script>
<script type="text/javascript" src="scripts/sounds.js"></script>
<script type="text/javascript" src="libs/FlyControls.js"></script>
<script type="text/javascript" src="libs/Tween.js"></script>
<script type="text/javascript" src="scripts/ship.js"></script>
<script type="text/javascript" src="scripts/hud.js"></script>
<script type="text/javascript" src="scripts/questions.js"></script>
<script type="text/javascript" src="scripts/planets.js"></script>
<script type="text/javascript" src="scripts/init.js"></script>
</head>
<body>
<div class="pause">
<h3>Press P for PAUSE/HELP</h3>
</div>
<div class="fuel-guage">
<h3>Fuel</h3>
<div class="fuel-bar">
<div class="fuel">
</div>
</div>
<h3 class="fuel-value">0</h3>
</div>
<div class="hud_gps">
<h3>GPS</h3>
<span id="xPos">0</span>, <span id="zPos">0</span>
<h3>Altitude</h3>
<span id="yPos">0</span>
</div>
<div class="hud_distance">
<div class="center">
<h3 id="approaching">Nearest Planet</h3>
<span id="distance">0</span>
</div>
</div>
<div class="hud_level">
<h3>Level</h3>
<span id="level">0</span>
</div>
<div class="trivia">
<h3 id="trivia-title">Welcome</h3>
<h2 id="questionOn">1/2</h2>
<p id="trivia-question">Question Here</p>
<ul>
<li id="ans-a"><span>A:</span> <span>Choice</span></li>
<li id="ans-b"><span>B:</span> <span>Choice</span></li>
<li id="ans-c"><span>C:</span> <span>Choice</span></li>
<li id="ans-d"><span>D:</span> <span>Choice</span></li>
</ul>
</div>
<div class="welcome">
<div class="welcome-content">
<h1 id="welcome-title">S P A C E</h1>
<p>A Space flight trivia game </p>
<div class="box">
<h4>HOW TO PLAY</h4>
<p>Answer trivia questions at each planet. <br />If you're correct your fuel goes up 5%. <br />If you're incorrect you lose 10%. <br />Fuel runs out when you're not answering questions.</p>
<h4>CONTROLS</h4>
<p>W: Fly forwards | S: Fly backwards</p>
<p>A: Move left | D: Move right</p>
<p>Up: Pitch + | Down: Pitch -</p>
<p>Left: Yaw left | Right: Yaw right</p>
<p>Q: Roll left | E: Roll right</p>
<p>R: Up | F: Down</p>
<p>P: Play/Pause</p>
</div>
</div>
</div>
<div class="gameOver">
<div class="gameOver-content">
<h1 id="gameOver-title">GAME OVER</h1>
<p>Press F5 to try again</p>
</div>
</div>
<div class="youWin">
<div class="youWin-content">
<h1 id="youWin-title">YOU WON!</h1>
<p>Press F5 to play again</p>
</div>
</div>
</body>
</html>