Skip to main content
Known Participant
December 10, 2009
Question

Multiplayer game, different rooms.

  • December 10, 2009
  • 1 reply
  • 373 views

I am in the midst of coding a multiplayer card game. Right now, to make things simple, I limit myself to code for 3 players for one room. The clients call functions in the server and vice versa. Functions such as player's turn, shuffling cards, etc.


So what happens if there's more than 1 room? Won't the data from the different rooms get mixed up with one another in the server side, since everything will be happening in just 1 server and on the same function?


I am abit confuse on this part. Can someone enlighten me on how different rooms work in a multiplayer game? How do I make sure the data don't get messed up?

    This topic has been closed for replies.

    1 reply

    December 11, 2009

    wether you code it by adding a parameter in your function calls to tell wich room is concerned, wether you use different instances of the same application. each room access will use different urls (but you can link them to a common entry point where you relocate players when they start a game).

    check the FMS documentation about this subject, that might saves you loads of programming.

    IFZen

    peruamal
    Known Participant
    December 17, 2009

    Hi Mate

    How do create Multiple user play games. Do you give the idea.

    Thanks