Forum Multiplayer Small 1 vs 1 rooms

Discussion and help relating to the PlayerIO Multiplayer API.

Small 1 vs 1 rooms

Postby EgoAnt » February 2nd, 2010, 6:36 am

What is the recommended method for handling 1vs1 rooms? Let me explain the basic structure of my game-

I have a main lobby area with an "arena" that players can access for one on one challenges. I would like players to be able to see a list of arena rooms that are open. It looks like i can use ListRooms for this, and just get rooms that are of type:"Arena" and then filter out the ones that already have 2 players. Would this work?
User avatar
EgoAnt
 
Posts: 23
Joined: February 2nd, 2010, 5:01 am
Location: Edmonton, AB

Re: Small 1 vs 1 rooms

Postby Benjaminsen » February 2nd, 2010, 9:25 am

EgoAnt wrote:What is the recommended method for handling 1vs1 rooms? Let me explain the basic structure of my game-

I have a main lobby area with an "arena" that players can access for one on one challenges. I would like players to be able to see a list of arena rooms that are open. It looks like i can use ListRooms for this, and just get rooms that are of type:"Arena" and then filter out the ones that already have 2 players. Would this work?


You can control if rooms are displayed in the lobby by toggling the attribute visible from C#
See http://playerio.com/documentation/refer ... me#Visible
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to Multiplayer



cron