Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplayer in Emscripten builds! #673

Closed
wants to merge 2 commits into from
Closed

Commits on Jun 22, 2024

  1. Configuration menu
    Copy the full SHA
    b719904 View commit details
    Browse the repository at this point in the history
  2. Multiplayer in Emscripten builds!

    This relies on the HumbleNet library to emulate BSD sockets over WebRTC DataChannel. Actual unreliable UDP packets are used so performance should be similar to native. WebRTC connection establishment requires a signaling server which is built separately.
    
    The dedicated server binary can now be built in WASM and run in the browser. It should also be possible to build a native dedicated server (or client) with USE_HUMBLENET and connect it to browser clients over WebRTC via the same HumbleNet signaling server. However, this would require importing more code from humblenet and libwebrtc, and has not been tried yet.
    jdarpinian committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    7819c51 View commit details
    Browse the repository at this point in the history