Snapshot of where WebRTC and Construct is

  • Hi everyone, so I was asked by a friend of mine if I can do multiplayer games and my first thought was.. no it's not possible without someone doing some backend server stuff, but then i remembered the multiplayer object.. but then i remembered its WebRTC DataChannels based. So now that WebRTC has been a thing in Construct for awhile and it's in C3. I just wanted to see if anything has changed / improved with this tech.

    • can WebRTC DataChannels / multiplayer operate on mobile? If safari supports it, would it work when wrapped with Cordova?
    • is WebRTC is on how many browsers now in 2018?
    • could a game using WebRTC work on a site like Kongregate?

    I'm interested in exploring this but i just want to be sure I'm making an informed decision about this. Maybe there is a better way? Ideally I'd love to be able to do it without a server back end, but I realize that peer to peer gaming wouldn't be good for MMOs for example.. but maybe esports would be cool to explore with this. I'd love peoples thoughts on the multiplayer plugin and anything else you have to share about MP and Construct.

  • - can WebRTC DataChannels / multiplayer operate on mobile?

    Yes. However some cell data providers have restrictive network address translation (NAT) that can block peer-to-peer connections. (That won't affect wifi which uses a different connection.) You'd need to run a TURN server to reach ~100% connectivity anyway.

    [quote:1pitrj1v]If safari supports it, would it work when wrapped with Cordova?

    Yes, WebRTC also works in Cordova when it's supported.

    [quote:1pitrj1v]- is WebRTC is on how many browsers now in 2018?

    Chrome, Firefox and Safari 11+ all support it. Safari has a bug that can cause connections to drop that is already fixed, just need to wait for the 11.1 release. The only browser with no Datachannels support is Edge.

    [quote:1pitrj1v]could a game using WebRTC work on a site like Kongregate?

    Yep, nothing special about that case, WebRTC still works.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks Ashley!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)