pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.22k stars 326 forks source link

Can networking.py make WAN connections? #585

Closed IndividualCoder closed 1 year ago

IndividualCoder commented 1 year ago

I want to ask if the networking of the engine can be used to make global games AKA can it be used to make WAN connections?

IndividualCoder commented 1 year ago

Getting it on discussions tab

IndividualCoder commented 1 year ago

Was left unanswered on discussions tab

ursinaguy commented 1 year ago

I dont know about the engine-provided networking but you can do a functional local online and splitscreen multiplayer using python socket and pickle library . here is a link to a good series that explains how to do so : https://www.youtube.com/watch?v=_fx7FQ3SP0U&list=PLzMcBGfZo4-kR7Rh-7JCVDN8lm3Utumvq

IndividualCoder commented 1 year ago

want to integrate it in ursina editor so me and my friend can make games together without any issue with distance

ursinaguy commented 1 year ago

An easier solution would be to use the Code With Me plugin in PyCharm which enables real time remote python coding for you and your friends .

IndividualCoder commented 1 year ago

We don't want to "code" by just writing seamlessly. I am making a game editor like unity or godot where you can work graphically edit scenes and make games @pokepetter please reply

pokepetter commented 1 year ago

I don't know, I didn't make the networking. Did you try? I assume you can though.

Also, please update the title as it's not very descriptive.

IndividualCoder commented 1 year ago

I don't know, I didn't make the networking. Did you try? I assume you can though.

so who made it, ask them if it can make global connections please @Squigglecito would you please answer

Squigglecito commented 1 year ago

The networking can make connections across WAN.

IndividualCoder commented 1 year ago

The networking can make connections across WAN.

how?? any example code?

Squigglecito commented 1 year ago

The peer.start method takes a host and port number. The host should start with an empty string and some unused port number. For the client provide the ip address / hostname of the remote device to connect to and the port number used by both peers. See any learning resource on sockets in Python.

IndividualCoder commented 1 year ago

ok, thank you very much