HxBit and peer-to-peer (not centralized server)


Has anyone ever implemented a peer-to-peer network (no centralized server) with HxBit?
I recently acquired Darksburg and saw that there was a peer-to-peer mode. By chance, if Mr. ncannasse passes by here, would it be possible to have a quick (even a long :innocent:) overview of how it works for this game?

My notions of network / sockets go back to my studies more than 15 years ago … The example of cursors on GitHub is very clear to me. With a local network everything is fine but we only find examples for the local network.

Thanks in advance

1 Like

Hi and sorry for the very late answer, I didn’t get the notification for the post :slight_smile:
For P2P we are using the Steam API on top of HxBit, and Steam takes care of establishing the connection between the players, either using NAT punch through or eventually a relay server.

The Steam Hashlink API wrapper is available here : GitHub - HeapsIO/hlsteam: Haxe native extension for the Steam API

Thank you very much for your answer :slightly_smiling_face: