Hello,
Im adding multiplayer funcionalty to my billiard game with Photon PUN Turnbased.
The scenario is like this:
-
Player goes into the game.
-
If no online players are there, I let the player play offline mode.
-
In the background, a new room is created where only this player is placed.
-
When a new player arrives, the cod checks if there are rooms only with one player.
-
Players start a match.
Now my question:
Is is smart to create empty “waiting rooms” or it a waste of resources?
Is there maybe a way to add players to a lobby, where they wait for a new opponent?
Mirza
well, imo “creating lobbies” or “waiting rooms” is never a wasting of resources… i guess this sentence stands in according with how often you update and retrieve data from your own MasterServer Host List. for that i know, only MasterServer can help. also, you can try to put an eye on the new Network system that comes with U3D 5.1 (the possibility to create “lobbies”, which needs to be optimized… just spend two minutes to check and read what users wrote about it).
honestly, if you really care “resources”, imo you can want server-users to share their IP directly with their friends… once clients have got server’s IP, they can do whatever they want (connect to, or not). these old ways always work… they are a bit rough.
above this, the creation of a PvP system is really easy: check how many players populate the same game session (if needed, try to balance it), opponent teamates are always flagged/tagged as hostile to each other.
please, keep in mind that my suggestions are not coming from an experienced coder. ok?
hope to have helped you, somehow.
-arcady87
thx, this leads me to conclusion that Im on the right path 