Creating Lobby using Photon Chat Channel

Options
Hi,

We have a live multiplayer game. Which uses Photon Realtime and Photon Chat. We have friends list coming from our server and using PUN Chat for online status and group chats.

Now we want to implement a lobby, where creator can invite his friends and then start searching / creating a room. I have an idea to do this using Photon chat channel. Please let me know if this looks good.

- Create a Chat Channel for Lobby and send name of channel to all selected friends
- Once friends subscribe to the channel, they appear in lobby.
- Here they can chat and master client can set game properties like map, mode etc
- Master client Searches / Creates a room with expectedUsers and sends room name to everyone in channel
- Everyone else joins same room because their slots are reserved.

I could just create a room and invite everyone to it but i wanted the ability to persist the group. And search for games and if there is no active game then create one.

Let me know if this approach looks fine. Or is there a better way of doing this.

Thanks

Comments