-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (118 loc) · 6.14 KB
/
Copy pathindex.html
File metadata and controls
128 lines (118 loc) · 6.14 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<title>Lander IMPOSSIBLE</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="game-wrapper">
<div id="game-container">
<div class="danger-border"></div>
<div class="speed-lines"></div>
<div class="near-miss-flash"></div>
<div class="near-miss-particles"></div>
<div id="stars-bg"></div>
<div id="stars-mg"></div>
<div id="stars-fg"></div>
<div id="earth"></div>
<div id="moon-surface"></div>
<div id="landing-pad"></div>
<div id="landing-guides">
<div class="landing-guide approach-line"></div>
<div class="landing-guide ideal-angle-zone"></div>
<div class="landing-guide speed-markers"></div>
<div class="landing-guide distance-markers"></div>
</div>
<div id="lander">
<svg id="lander-img" viewBox="0 0 100 150" xmlns="http://www.w3.org/2000/svg">
<path d="M25 20 L50 10 L75 20 L85 80 L15 80 Z" class="lander-main"/>
<circle cx="50" cy="35" r="10" class="window" />
<path d="M25 80 L15 120" class="legs leg-left" />
<path d="M75 80 L85 120" class="legs leg-right" />
<path d="M10 120 L20 120" class="legs foot-left"/>
<path d="M80 120 L90 120" class="legs foot-right"/>
<rect x="40" y="75" width="20" height="10" class="thruster-nozzle"/>
<rect x="15" y="40" width="10" height="8" class="thruster-nozzle side-nozzle-left"/>
<rect x="75" y="40" width="10" height="8" class="thruster-nozzle side-nozzle-right"/>
<g id="damage-elements">
<path d="M45 30 l5 8 l-6 2 l3 -7" class="damage-crack window-crack" />
<path d="M51 36 l5 -3 l-1 6 l-3 -1" class="damage-crack window-crack" />
<path d="M20 100 l-3 5 l4 -1 Z" class="damage-bent-leg leg-damage" />
</g>
</svg>
<div class="thruster-glow"></div>
<div class="thruster-flame"></div>
<div class="side-thruster-glow left"></div>
<div class="side-thruster-flame left"></div>
<div class="side-thruster-glow right"></div>
<div class="side-thruster-flame right"></div>
</div>
<div id="dashboard">
<h3 id="dashboard-title">MISSION STATUS</h3>
<div class="dashboard-item">
<span class="dashboard-label">ALT:</span><span id="altitude" class="dashboard-value good">0 m</span>
</div>
<div class="dashboard-item">
<span class="dashboard-label">V SPD:</span><span id="vertical-speed" class="dashboard-value good">0.0 m/s</span>
</div>
<div class="dashboard-item">
<span class="dashboard-label">H SPD:</span><span id="horizontal-speed" class="dashboard-value good">0.0 m/s</span>
</div>
<div class="dashboard-item">
<span class="dashboard-label">ROT:</span><span id="rotation" class="dashboard-value good">0 deg</span>
</div>
<div class="dashboard-item">
<span class="dashboard-label">FUEL:</span><div id="fuel-bar"><div id="fuel-level"></div></div>
</div>
<div class="dashboard-item">
<span class="dashboard-label">DEST:</span><span id="planet-display" class="dashboard-value">???</span>
</div>
</div>
<div id="highscore-display">
<h3>HIGH SCORES</h3>
<ol id="highscore-list"></ol>
</div>
<div id="controls-info">
Controls: <span>↑</span> Thrust | <span>←</span> Rotate Left | <span>→</span> Rotate Right | <span>P</span> Pause
</div>
</div>
<div id="message-overlay">
<div id="message-container">
<div id="message-title">Mission Result</div>
<div id="message-text">Landing details...</div>
<div id="message-score">Score: 0</div>
<div id="message-highscore"></div>
<img id="silly-success-graphic" src="silly-graphic.png" alt="Woohoo!" style="display: none;">
<button id="next-planet-btn" class="btn" style="display: none;">Next Planet</button>
<button id="restart-btn" class="btn">Try Again</button>
<button id="main-menu-btn" class="btn">Main Menu</button>
</div>
</div>
<div id="start-screen">
<h1>Lander IMPOSSIBLE</h1>
<p>Guide your module to a safe landing. It's incredibly hard. Control your rotation and thrust carefully. Avoid obstacles and the harsh planetary surface! Only the best pilots can reach other planets.</p>
<div id="planet-progression" style="display: none;">
<h3>Unlocked Destinations:</h3>
<div id="planet-list"></div>
</div>
<button id="start-game-btn" class="btn">Attempt Mission</button>
<div class="footnote">Check out more of my work at <a href="https://www.shubhankarmadgulkar.com" target="_blank">www.shubhankarmadgulkar.com</a></div>
</div>
</div>
<!-- Add mobile controls -->
<div id="mobile-controls" class="mobile-controls">
<div class="control-row">
<button id="rotate-left-btn" class="control-btn rotate-btn">←</button>
</div>
<div class="control-row">
<button id="thrust-btn" class="control-btn thrust-btn">↑</button>
</div>
<div class="control-row">
<button id="rotate-right-btn" class="control-btn rotate-btn">→</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>