Files
the-nexus/index.html
Alexander Whitestone 4f1b86eea2
Some checks failed
CI / validate (pull_request) Has been cancelled
feat: add ring of floating runes around Nexus center platform (#110)
- Build full Three.js scene with scene/camera/renderer/OrbitControls
- Add center platform (cylinder) with edge glow ring and pulsing disc
- Create 12 Elder Futhark rune billboards arranged in an orbiting ring
- Runes float vertically (per-rune phase offset) and slowly orbit platform
- Alternating cyan/magenta glow colors via canvas texture
- Faint orbit indicator torus at rune height
- Starfield background (2500 points)
- Pulsing point lights for living atmosphere
- Import map in index.html wires Three.js 0.183 from CDN
- Retain WebSocket client integration and audio toggle

Fixes #110
2026-03-23 23:58:06 -04:00

45 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timmy's Nexus</title>
<meta name="description" content="A sovereign 3D world">
<meta property="og:title" content="Timmy's Nexus">
<meta property="og:description" content="A sovereign 3D world">
<meta property="og:image" content="https://example.com/og-image.png">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Timmy's Nexus">
<meta name="twitter:description" content="A sovereign 3D world">
<meta name="twitter:image" content="https://example.com/og-image.png">
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="style.css">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.183.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.183.0/examples/jsm/"
}
}
</script>
</head>
<body>
<canvas id="nexus-canvas"></canvas>
<div id="hud">
<div id="hud-title">THE NEXUS</div>
</div>
<!-- Top Right: Audio Toggle -->
<div id="audio-control" class="hud-controls">
<button id="audio-toggle" class="chat-toggle-btn" aria-label="Toggle ambient sound">
🔊
</button>
<audio id="ambient-sound" src="ambient.mp3" loop></audio>
</div>
<script type="module" src="app.js"></script>
</body>
</html>