Some checks failed
CI / validate (pull_request) Has been cancelled
Implements Three.js Points-based particle system for rain and snow. - Rain: 3000 particles, fast vertical fall, blue-white tint - Snow: 1500 particles, slow drift with x-axis sway, white - Cycle button: ⛅ Weather → 🌧 Rain → ❄ Snow → repeat - Full scene setup (renderer, camera, lighting, grid floor) - Particles reset to top when they fall below y=0 Fixes #117
49 lines
1.6 KiB
HTML
49 lines
1.6 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://unpkg.com/three@0.183.0/build/three.module.js",
|
|
"three/addons/": "https://unpkg.com/three@0.183.0/examples/jsm/"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- HUD Controls -->
|
|
<div id="hud">
|
|
<!-- Top Right: Audio Toggle -->
|
|
<div id="audio-control" class="hud-controls">
|
|
<button id="audio-toggle" class="hud-btn" aria-label="Toggle ambient sound">
|
|
🔊
|
|
</button>
|
|
<audio id="ambient-sound" src="ambient.mp3" loop></audio>
|
|
</div>
|
|
|
|
<!-- Top Left: Weather Toggle -->
|
|
<div id="weather-control" class="hud-controls hud-controls--left">
|
|
<button id="weather-toggle" class="hud-btn" aria-label="Toggle weather" data-mode="none">
|
|
⛅ Weather
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="app.js"></script>
|
|
</body>
|
|
</html>
|