-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (65 loc) · 1.37 KB
/
index.html
File metadata and controls
65 lines (65 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gravity Explorer</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #0a0a0f;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
font-family: 'Courier New', monospace;
color: #ccc;
}
canvas {
border: 1px solid #222;
display: block;
}
#controls {
margin-top: 12px;
display: flex;
align-items: center;
gap: 20px;
}
#respawn {
background: #00ffcc;
color: #0a0a0f;
border: none;
padding: 8px 20px;
font-family: inherit;
font-size: 14px;
font-weight: bold;
cursor: pointer;
border-radius: 4px;
}
#respawn:hover { background: #33ffd6; }
#status {
font-size: 14px;
min-width: 260px;
}
#instructions {
margin-top: 10px;
max-width: 800px;
text-align: center;
font-size: 12px;
color: #666;
line-height: 1.5;
}
</style>
</head>
<body>
<canvas id="canvas" width="800" height="600"></canvas>
<div id="controls">
<button id="respawn">Respawn</button>
<span id="status">Orbiting...</span>
</div>
<div id="instructions">
Arrow keys / WASD to thrust · Fuel recovers when not thrusting · Respawn on crash · Explore as far as you can
</div>
<script src="game.js"></script>
</body>
</html>