B
B
Babay2019-06-18 07:52:24
Unity
Babay, 2019-06-18 07:52:24

What technology to use for multiplayer?

Unity Network the difference with Photon is not very clear to me, the difference is only in the number of players? What would be better to use to study? Now I'm starting to play around with the network code and I would like to know firsthand what do you think about this? And another question, is it necessary to write the network code from the very beginning of the project, or can it be added when something is ready?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2019-06-18
@Babaq

I wrote on everything and came to the conclusion that I had to write myself. The finished system is too outdoor and does not fit half the projects.

X
xmoonlight, 2019-09-11
@xmoonlight

Do this:
1. Create (design!) your network class for dialogue with the server (your API).
2. And then, make it work with both Unity Network, Photon, and any of your servers.
For your server (for example, websocket.in ) - any socket server (you can use a web socket, you can use a regular one - it depends on the traffic exchange rate and the number of players).
And switch depending on what is more convenient (test, see).
The main thing is that you won’t have to rewrite anything with any choice.

And another question, is it necessary to write the network code from the very beginning of the project, or can it be added when something is ready?
You need to create an object state model and a data movement model, compare and understand the points at which you will make a client-server exchange.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question