-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
68 lines (64 loc) · 2.14 KB
/
game.html
File metadata and controls
68 lines (64 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pirate Seas - 3D Game</title>
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/game.css">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<!-- ES Module Shims -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<style>
#connection-status {
position: fixed;
top: 20px;
left: 20px;
background-color: rgba(0,0,0,0.7);
color: orange;
padding: 5px 10px;
border-radius: 4px;
font-family: Arial, sans-serif;
font-size: 12px;
z-index: 1001;
transition: color 0.5s ease, background-color 0.5s ease;
}
#ship-position {
font-size: 11px;
color: #ccc;
margin-top: 4px;
}
</style>
</head>
<body>
<div id="game-container"></div>
<!-- Connection Status -->
<div id="connection-status">Initializing...</div>
<!-- Stats Overlay -->
<div id="stats-overlay">
<div class="stats-box">
<h3>Game Stats</h3>
<div class="stats-content">
<p>Players Online: <span id="player-count">1</span></p>
<p>Ship Speed: <span id="ship-speed">0.00</span></p>
<p>Health: <span id="ship-health">100</span></p>
<p id="ship-position">Pos: (0.0, 0.0, 0.0)</p>
</div>
</div>
</div>
<!-- Minimap -->
<div id="minimap-container"></div>
<!-- Load Game Script -->
<script type="module" src="js/game.js?v=6"></script> <!-- Cache busting -->
</body>
</html>