PixelGuys / Cubyz

Voxel sandbox game with a large render distance, procedurally generated content and some cool graphical effects.
GNU General Public License v3.0
449 stars 55 forks source link

mesh network #266

Closed Pantyhose-X closed 9 months ago

Pantyhose-X commented 9 months ago

overlay networking since each node is both a server and a client overlay networking to create a direct encrypted tunnel between two nodes even if they’re both behind firewalls. Each node doesn’t even need to know the other’s IP address before starting the connection.

Hyprspace n2n nebula qaul

P2P Hypercore Protocol and pinecone and libp2p and devp2p WebRTC bittorrent gemini Earthstar Pigeon geneva Protocol

IntegratedQuantum commented 9 months ago

I don't think this makes sense for a small-scale multiplayer game like Cubyz. A centralized server is needed in order to store a consistent game state. Otherwise it would be possible to get conflicting game states and I don't want to deal with that. Additionally, a decentralized system would require a lot of additional work and storage, since everyone would be storing copies of the information.

By the way, Cubyz is already in some ways peer to peer: There is no authentication server. The game server can be behind a firewall, due to using holepunching.