godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.96k stars 3.23k forks source link

Enhanced tutorial/demo for Peer-to-Peer networking. #3476

Open OnomatoWomba opened 4 years ago

OnomatoWomba commented 4 years ago

The official demos for Godot's peer-to-peer networking, I believe, have much to be desired, as they don't show much applicability to a real peer-to-peer setup example. The best example of a demo I could find that would actually show you an example of how to have a server communicate between two clients and use ICE is in this reddit thread where a kind user gave their own demo for people to examine and use: https://www.reddit.com/r/godot/comments/efuazd/i_made_a_small_game_with_the_new_webrtc/fc2rbjz/

While I understand recieving messages to and from a server for http post requests using web sockets, there isn't much help when it comes to the newly added WebRTC support, especially when it comes to its demos and tutorials in the documentation. This is surprising since genres like fighting games, beat-em-ups, and arcade-style games benefit from this solution.

Something like the "Your First Game" tutorial in the "Getting Started" section or the "FPS tutorial" in the 3D tutorial section would be incredibly helpful since networking is such a different process logistically in Godot. It may even be beneficial to give a more detailed tutorial for the MultiplayerEnet solution as well, if there's an apparent need.

jonbonazza commented 4 years ago

Do you have any specific suggestions for improvement here? As it is, im not sure how actionable this issue is.

aGuyWhoMadeGames commented 5 months ago

https://github.com/godotengine/godot-demo-projects/tree/master/networking/webrtc_signaling is a great example of using a websocket signaling server.