-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
209 lines (205 loc) · 7.84 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Rerbal Space Program</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="./static/styles/rsp.css" rel="stylesheet" />
<!-- Favicons made on https://favicon.io/ -->
<link rel="icon" type="image/png" href="./static/favicon/favicon-32x32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="./static/favicon/favicon-16x16.png" sizes="16x16"/>
</head>
<body>
<main>
<article class="page" id="home-page">
<header class="home-title">
<pre>
______ __ __
| __ \ | | | |
| |__) |___ _ __| |__ __ _| |
| _ // _ \ '__| '_ \ / _` | |
| | \ \ __/ | | |_) | (_| | |
|_| \_\___|_| |_.__/ \__,_|_|_
____ ___
/ __/__ ___ ________ / _ \_______ ___ ________ ___ _
_\ \/ _ \/ _ `/ __/ -_) / ___/ __/ _ \/ _ `/ __/ _ `/ ' \
/___/ .__/\_,_/\__/\__/ /_/ /_/ \___/\_, /_/ \_,_/_/_/_/
/_/ /___/
version 1.0.2 ☿ "Mercury"
</pre>
<!-- Big
Chunky
Italic
Larry 3d
small slant
Short from https://www.coolgenerator.com/ascii-text-generator -->
</header>
<div class="home-intro">
Design a roguish rocket and try to get into space.
</div>
<div data-command="goto spaceCenter" class="button">
[<span class="key">Enter</span>] Enter the Rerbal Space Center
</div>
<div class="home-details">
[X] Made for 7DRL 2023 [X] Random winds, [X] Start over after destruction, [X] Turn-based,
[X] Resources to manage, [X] Single player, [X] Lots of Numbers,
[X] Keyboard controls,
[X] Less functionality than KSP1 Alpha,
[X] Worse framerate than the KSP2 EA launch
</div>
</article>
<article class="page" id="space-center-page">
Rerbal Space Center
<div style="display:none">
Science: <span class="researchPoints"></span>
</div>
<ul id="building-list"></ul>
</article>
<article class="page" id="research-page">
Research
<dl id="research-parts-list"></dl>
<footer>
<div class="button" data-command="goto spaceCenter">
[<span class="key">Enter</span>] Done
</div>
</footer>
</article>
<article class="page" id="vab-page">
<header>
VAB
</header>
<div class="page-body">
<section id="vab-parts">
Parts
<ul id="vab-parts-list"></ul>
<div data-command="clear vab" class="button">[<span class="key">Backspace</span>] Clear</div>
</section>
<section id="vab-rocket">
Rocket
<div class="vab-rocket-container">
<ul id="vab-rocket-list"></ul>
<svg id="vab-rocket-svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
viewBox="0 0 60 600">
<g id="vab-rocket-svg-group">
</g>
</svg>
</div>
</section>
<section id="vab-rocket-info">
<ul>
<li>Mass: <span id="vab-rocket-mass-value">-</span></li>
<!-- <li>Complexity: <span id="vab-rocket-complexity-value">-</span></li> -->
<li>Control: <span id="vab-rocket-control-value">-</span></li>
<li>Steering: <span id="vab-rocket-steering-value">-</span></li>
</ul>
<div data-command="goto spaceCenter" class="button">
[<span class="key">Esc</span>] Exit
</div>
<div data-command="goto flight" class="button">
[<span class="key">Enter</span>] Launch
</div>
</section>
</div>
</article>
<article class="page" id="flight-page">
<header>
<div>Flight</div>
</header>
<div class="page-body">
<section id="flight-rocket">
<svg id="flight-rocket-svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
viewBox="0 0 60 600">
<g id="flight-rocket-svg-group">
</g>
</svg>
<div id="flight-rocket-stats">
<div>Total Fuel: <span id="flight-rocket-total-fuel-value">-</span></div>
<div>Mass: <span id="flight-rocket-mass-value">-</span></div>
</div>
</section>
<section id="flight-progress">
<div id="flight-map-container">
<svg id="flight-map-svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
viewBox="0 0 10 10">
<g id="flight-map-world-group">
<circle cx="0" cy="0" r="200" id="atmosphere-circle" />
<circle cx="0" cy="0" r="100" id="planet-circle" />
<text style="font-size: 10000px; transform: scale(10) rotate(90deg) translate(-35853px, 0);">Planet Rerbin</text>
<g id="flight-map-path-group">
</g>
<g id="flight-map-trajectory-group">
</g>
<g id="flight-map-rocket-group">
<circle cx="0" cy="0" r="100" id="flight-map-rocket-dot" class="flight-map-dot" />
<path d="M 0 -1000 L 0 1000 L 2000 0 Z" />
</g>
</g>
</svg>
</div>
<div id="flight-altitude">
Altitude: <span id="flight-altitude-value">-</span>
</div>
<div id="flight-time">Time: <span id="flight-time-value">-</span></div>
<div id="flight-telemetry-container">
<svg id="flight-telemetry-svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
viewBox="0 0 100 100">
<g style="transform: translate(50px, 50px)">
<g style="transform: rotate(45deg)" id="navball-group">
<circle cx="0" cy="0" r="40" class="navball-circle" />
<path d="M -40 1 L 40 1" class="ground" />
<path d="M 0 0 L 0 10" class="ground" />
<path d="M -40 -1 L 40 -1" class="sky" />
<path d="M 0 0 L 0 -10 l -2 2 M 0 -10 l 2 2" class="sky" />
<text id="navball-ground-text" class="ground">ground</text>
</g>
<path id="navball-velocity-arrow" style="transform: rotate(45deg)" d="M 0 -20 l 0 -10 l -3 3 m 3 -3 l 3 3" />
<!-- <path id="navball-thrust-arrow" style="transform: rotate(45deg)" d="M 0 -20 l 0 -10 l -3 3 m 3 -3 l 3 3" /> -->
<!-- <rect x="-15" y="-40" rx="4" ry="4" width="30" height="10" fill="#111" /> -->
</g>
<!-- Nav ball, throttle, heading (angle), speed, g-forces -->
</svg>
<div id="flight-telemetry-rotation">Rotation: <span id="flight-rotation-value"></span>°</div>
<div id="flight-telemetry-speed">Speed: <span id="flight-speed-value"></span>m/s</div>
</div>
</section>
<section id="flight-info">
<div id="flight-info-dump"></div>
<dl>
<div>
<dt>Control:</dt>
<dd><span id="flight-control-value">-</span> (+1/turn)</dd>
</div>
<div>
<dt>Steering:</dt>
<dd><span id="flight-steering-value">-</span></dd>
</div>
</dl>
<ul id="flight-command-list">
<li>
<span data-command="steer left">[<span class="key">a</span>] Steer Left</span> /
<span data-command="steer right">Steer Right [<span class="key">d</span>]</span>
</li>
<li>
<span data-command="zoom in">[<span class="key">+</span>] Zoom In</span> /
<span data-command="zoom out">Zoom Out [<span class="key">-</span>]</span>
</li>
<li data-command="autoAdvance toggle">[<span class="key">Tab</span>] Toggle Auto-Advance</li>
<li data-command="activate stage">[<span class="key">Space</span>] Launch / Activate Next Stage (Cost: 10 control)</li>
</ul>
<div id="flight-destroyed">
Destroyed!
[<span class="key">Esc</span>] Leave
</div>
<div data-command="advance turn" class="button">
[<span class="key">Enter</span>] Advance Turn (+1 second)
</div>
<div data-command="goto spaceCenter" class="button">
[<span class="key">Esc</span>] Exit
</div>
</section>
</div>
</article>
</main>
<script type="module" src="build/game_bundle.js"></script>
</body>
</html>