Hiya folks,
I'm developing a mobile game with multiplayer features. By design, I need the following:
- Player chooses to enter a PvP battle
- They get matched up against someone of roughly equal rank/skill
- They each play their own game but randomly will send an event to the other player
- The events can be chat emojis or gameplay-related hindrances and buffs.
- I may need to sync up a value between them so they can see their opponent's progress.
- When one player loses, the game ends and rank is adjusted.
I'm looking into using a custom game server for this, but I have absolutely no experience and I'm encountering so many questions. I downloaded this example from GitHub and followed the steps. My problem, now, is I don't know how this is expected to be used in an actual game.
For instance...
1. When a player selects 'Battle' to play a PvP match, do I call PlayFab's MatchMake?
2. Is the build I make the single instance that handles everything or is it per battle?
3. Inside my Mediator, do I need to have a List<> of every player currently being matched?
4. Do I call StartGame when 2 players are matched up?
5. Where do I store the 2 battling players so I can send events back and forth?
6. When I call MatchMake, does that run until a match is found or some time expires?
There are so many other questions I have, but they all stem from the core concept I think, and once I understand that I'll be good to go. I haven't been able to find any, but if there's an example somewhere that's actually using all of the Matchmaking/Multiplayer functionality, that'd be a huge help. The example on GitHub has been very helpful in setting up the build.
Thanks again!
-Matt