-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·84 lines (68 loc) · 3.75 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
<!DOCTYPE html>
<html>
<head>
<title>Moonlander #4th NGB.to coding competition</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="content">
<canvas id="stage" width="1024" height="850"></canvas>
<div id="options">
<div class="optionsBlock">
<h4>Terrain</h4>
<label for="terrainType">Terrain Type:</label>
<span>Smooth</span><input name="terrainType" class="optionValue" type="radio" autocomplete="off"
checked="checked" value="1" />
<span>Hard</span><input name="terrainType" class="optionValue" type="radio" autocomplete="off"
value="0" />
</div>
<div class="optionsBlock">
<h4>Physics</h4>
<label for="moonGravity">Gravity</label>
<input name="moonGravity" class="optionValue" type="number" autocomplete="off" title="Default: 1.62"
value="1.62" step="0.01" min="1.0" max="3.0" />
<h4>Wind options</h4>
<label for="moonWindMaxStrength">Max Strength</label>
<input name="moonWindMaxStrength" class="optionValue" type="number" autocomplete="off"
title="Default: 2.0" value="2" min="0.0" max="4.0" step="0.1" />
<label for="moonWindEnabled">Wind status</label>
<span>Enabled</span><input name="moonWindEnabled" class="optionValue" type="radio" autocomplete="off"
checked="checked" value="1" />
<span>Disabled</span><input name="moonWindEnabled" class="optionValue" type="radio" autocomplete="off"
value="0" />
</div>
<div class="optionsBlock">
<h4>Landing options</h4>
<label for="maxAngle">Max Angle</label>
<input name="maxAngle" class="optionValue" type="number" autocomplete="off" title="Default: 43"
value="43" step="1" min="25" max="75" />
<label for="maxCollisionSpeed">Max Speed</label>
<input name="maxCollisionSpeed" class="optionValue" type="number" autocomplete="off"
title="Default: 1.275" value="1.275" step="0.001" min="1.0" max="2.0" />
</div>
<div class="optionsBlock">
<h4>Fuel options</h4>
<label for="landerFull">Amount</label>
<input name="landerFull" class="optionValue" type="number" autocomplete="off" title="Default: 1.0"
value="1.0" step="0.05" min="0.25" max="1.0" />
<label for="fuelConsumption">Consumption</label>
<input name="fuelConsumption" class="optionValue" type="number" autocomplete="off" title="Default: 125"
value="125" step="5" min="0" max="500" />
</div>
<div class="optionsBlock">
<h4>Performance</h4>
<label for="landerParticleSprayCount">Particle amount</label>
<input name="landerParticleSprayCount" class="optionValue" type="number" autocomplete="off"
title="Default: 25" value="25" step="1" min="5" max="50" />
<label for="preFetchTerrain">Img Terrain</label>
<input name="preFetchTerrain" class="optionValue" type="checkbox" autocomplete="off" value="true"
title="Default: Unchecked" />
</div>
</div>
</div>
<p>Press SPACE to restart the game, press WAD keys or Arrow left, up, right to control boosters.</p>
<h3>Moonlander by theSplit for #4th NGB.to coding competition.</h3>
<script type="text/javascript" src="moonlander.js"></script>
</body>
</html>