// reset everything function resetGame() gameRunning = true; score = 0; playerY = GROUND_Y - PLAYER_SIZE; playerVel = 0; isOnGround = true; obstacles = []; frame = 0; spawnCounter = 0; currentSpawnDelay = baseSpawnDelay; updateUI(); document.getElementById('gameStatusText').innerHTML = '🏃♂️ DASH! 🏃♂️'; shakeAmount = 0; pulseIntensity = 5;