The Livestream View is a dedicated display designed for livestream hosts to show on their broadcasts. It provides a stunning, real-time visualization of all connected players and comprehensive statistics about the collective gameplay experience.
-
Collective Coherence Meter
- Large, prominent percentage display (0-100%)
- Real-time progress bar with glowing effects
- Color-coded coherence levels:
- PERFECT (90-100%): Gold/Amber
- HIGH (70-89%): Gold/Amber
- MEDIUM (40-69%): Cyan
- LOW (20-39%): Red
- CHAOTIC (0-19%): Red
-
The Body Visualization
- Each connected player appears as a glowing dot/cell
- Gold cells: Players in sync with the rhythm
- Red cells: Players out of sync or infected
- Cells arranged in an organic, living pattern
- Sacred geometry overlays appear at 80%+ coherence
- Stunning radial pulse effect at 95%+ coherence
-
Real-Time Statistics
- Active Players: Total number of connected cells
- Total Taps: Aggregate tap count across all players
- Accuracy: Average tap accuracy percentage
- Infections Cleared: Total thought bubbles dismissed
- Session Time: Live timer showing session duration
The view follows the game's bio-digital bioluminescence aesthetic:
- Deep black background with subtle animated grid
- Neon cyan, gold, and red color palette
- Dynamic lighting effects that respond to coherence level
- Sacred geometry that emerges at high coherence
- Smooth animations and transitions
- Start a multiplayer game session to get a session ID
- Open the livestream view in a separate browser window/tab using this URL format:
https://your-game-url.com/?view=livestream&session=YOUR_SESSION_IDFor local development:
http://localhost:5173/?view=livestream&session=YOUR_SESSION_IDProduction (when deployed):
https://criticalmassgame.com/?view=livestream&session=game-2024-12-27-abc123Local Development:
http://localhost:5173/?view=livestream&session=game-2024-12-27-abc123-
Create a multiplayer game session
- Either manually create a session ID or join an existing session
- Note the session ID
-
Open the livestream view
- Open your browser to the livestream view URL with the session ID
- Full screen this window (F11 on most browsers)
-
Screen capture setup
- Use OBS, Streamlabs, or your preferred streaming software
- Add a "Browser Source" or "Window Capture"
- Point it to the livestream view window
- Set resolution to 1920x1080 (Full HD) or higher
-
Start your broadcast
- Share the regular game URL with your audience
- Players join using their phones/devices
- The livestream view automatically updates as players connect
- Add a new Browser Source
- Set the URL to your livestream view URL
- Set dimensions:
- Width: 1920
- Height: 1080
- Check "Shutdown source when not visible" for performance
- Check "Refresh browser when scene becomes active"
- Resolution: 1920x1080 (1080p)
- Frame Rate: 30 or 60 fps
- Bitrate: 4500-6000 kbps for smooth visuals
- Encoder: H.264 (hardware encoding recommended)
The background subtly responds to the coherence level:
- Low coherence: Minimal glow, cooler tones
- Medium coherence: Soft cyan glow
- High coherence: Warm amber glow
- Perfect coherence: Intense golden radiance
- Organic Positioning: Cells are distributed naturally across the screen with slight randomness
- Real-Time Updates: As players sync or desync, their cells change color instantly
- Smooth Animations: All transitions use smooth animations (300ms duration)
- Pulsing Effect: Synchronized cells pulse gently to indicate active participation
When coherence reaches 80%+, sacred geometry appears:
- Two concentric rotating circles (toroid representation)
- Gold and cyan colors representing the dual aspects of coherence
- Slow rotation speeds (20-30 seconds per rotation)
- Creates mesmerizing visual focus point
- Optimized for real-time updates: Uses Firebase real-time database listeners
- Efficient rendering: Only re-renders changed elements
- Scales to thousands of players: Cell visualization uses percentage-based positioning
- Low latency: Sub-second updates from Firebase
The view pulls data from:
sessions/{sessionId}- Session metadata and coherenceplayers/{sessionId}- Individual player states- Real-time listeners ensure instant updates
- Chrome/Edge: Full support (recommended)
- Firefox: Full support
- Safari: Full support
- Mobile browsers: Works but not optimized (use desktop for livestreaming)
- Check that the session ID in the URL is correct
- Ensure the session exists (someone must have started a game)
- Verify Firebase connection is active
- Confirm players are joining the correct session ID
- Check Firebase console for player data
- Ensure Firebase security rules allow read access
- Close unnecessary browser tabs
- Use hardware acceleration in browser settings
- Reduce number of active effects in OBS
- Consider lowering stream resolution/frame rate
- Check browser console for Firebase connection errors
- Verify network connection is stable
- Refresh the browser window
- Check Firebase quota limits
The livestream view can be customized by modifying the component:
- Adjust cell size: Change the
widthandheightin the cell rendering - Modify colors: Edit the color scheme in the coherence level logic
- Add custom effects: Add additional visual effects at milestone coherence levels
- Custom stats: Add tracking for specific metrics relevant to your stream
Potential additions (not yet implemented):
- Chat integration showing player messages
- Top performers leaderboard
- Historical coherence graph
- Breakthrough celebration animation
- Custom branding/logo overlay
- Multi-session comparison view
- Test before going live: Always test the view before your actual broadcast
- Have a backup: Keep a static image ready in case of technical issues
- Monitor the stats: Use stats to engage with your audience ("We're at 75%! Keep going!")
- Explain the view: Tell viewers what they're seeing to increase engagement
- Capture breakthrough moments: The 100% coherence moment is peak content
- Point out synchronized cells: "Look at all that gold!"
- Call out stats: "500 infections cleared! The Body is healing!"
- Build tension: "We're so close to breakthrough..."
- Celebrate together: "CRITICAL MASS ACHIEVED!"
For issues or questions:
- Check the Development Guide
- Review Firebase Setup
- Open an issue on GitHub
- Join the community Discord (if available)
"When thousands synchronize, the impossible becomes inevitable. This is Critical Mass."
The Body is One.