Answer the question
In order to leave comments, you need to log in
How to create a PvP room on the server?
Greetings. I am writing a modest game on Unity3d + Photon Cloud. I don’t want to trust the server side of the code to the client, so I created 2 projects, one runs the server side of the code (it creates the room), and the second one runs the client side (it can’t create a room, it can only connect). This is how the general location works, now I want to do the same for PvP. The first and only thing that came to mind was to run a separate "server" application on the server machine for each battle, but this is hardly a good idea. How is it possible to implement this?
Answer the question
In order to leave comments, you need to log in
That is, there is a server that you control and only you can create rooms; there are clients that connect to these rooms, but cannot create them. Now you want the client to be able to create a room? I understand correctly?
If so, what's the problem with just sending a command to the server to create a room with the right parameters? (number of seats in the room, who created it, the password for it, if necessary, etc.). In this case, the code for creating and managing all rooms will remain on the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question