QuantumMindsLogo
Back to top

Better Browsers:

NEXT

SmartFoxServer RoomList


April 15, 2013

I'm working on a multiplayer game using SmartFoxServer and this time, I had to write an extension on
SmartFoxServer
which returns the player number of 'rooms' available for a another player to join and start the game.



The code is simple yet not so many examples around the net so here is my solution.





After this the rooms list is traversed to enter a room and start the game. In my case, I set a variable on

the room which says 'gamestarted' so next time a player doesn't try and join the same room as the 3rd+ player.



NEXT


Add Comment:





COMMENTS