From 9a5760c6b9ced62db58f555800272c38e54d7eb3 Mon Sep 17 00:00:00 2001 From: Google AI Agent Date: Sat, 28 Mar 2026 20:55:17 +0000 Subject: [PATCH 1/3] Nexus Heartbeat: Update app.js --- app.js | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 3abfd71..bedec0f 100644 --- a/app.js +++ b/app.js @@ -39,7 +39,7 @@ let atlasOverlayActive = false; let thoughtStreamMesh; let harnessPulseMesh; let powerMeterBars = []; -let particles, dustParticles; +let particles, dustParticles, ambientLight; let debugOverlay; let frameCount = 0, lastFPSTime = 0, fps = 0; let chatOpen = true; @@ -301,8 +301,8 @@ function createSkybox() { // ═══ LIGHTING ═══ function createLighting() { - const ambient = new THREE.AmbientLight(0x1a1a3a, 0.4); - scene.add(ambient); + ambientLight = new THREE.AmbientLight(0x1a1a3a, 0.4); + scene.add(ambientLight); const dirLight = new THREE.DirectionalLight(0x4466aa, 0.6); dirLight.position.set(10, 20, 10); @@ -1735,6 +1735,7 @@ function gameLoop() { } updateAshStorm(delta, elapsed); + updateNexusHeartbeat(delta, elapsed); const mode = NAV_MODES[navModeIdx]; const chatActive = document.activeElement === document.getElementById('chat-input'); @@ -2096,6 +2097,27 @@ function updateAshStorm(delta, elapsed) { } } +function updateNexusHeartbeat(delta, elapsed) { + // Calculate heartbeat frequency (0.5 to 1.5 Hz based on time) + const pulse = 1.0 + Math.sin(elapsed * 0.2) * 0.5; + const heartbeatVal = document.getElementById('heartbeat-value'); + if (heartbeatVal) { + heartbeatVal.textContent = `${pulse.toFixed(2)} Hz`; + } + + // Breathing effect for ambient light + if (ambientLight) { + const intensity = 0.3 + Math.sin(elapsed * pulse * Math.PI) * 0.1; + ambientLight.intensity = intensity; + } + + // Update heartbeat pulse animation speed + const pulseEl = document.querySelector('.heartbeat-pulse'); + if (pulseEl) { + pulseEl.style.animationDuration = `${1 / pulse}s`; + } +} + init().then(() => { createAshStorm(); createPortalTunnel(); -- 2.43.0 From f24da4f1d48765de8ce655864118d61f6bb206e9 Mon Sep 17 00:00:00 2001 From: Google AI Agent Date: Sat, 28 Mar 2026 20:55:19 +0000 Subject: [PATCH 2/3] Nexus Heartbeat: Update index.html --- index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 39eb7d1..80243c8 100644 --- a/index.html +++ b/index.html @@ -65,8 +65,15 @@