Creating multiplayer Windows Store game.

    General discussion

  • Hi,

    I create game for Windows Store and I had idea to add multiplayer match for my game. I wonder, how can I do it, what should I use? It is a good way to create a server-client connection or use somethink different?

    Thank you for any help.

    Thursday, February 05, 2015 9:00 PM

All replies

  • You'll have to start by defining what you mean by multiplayer.

    Do you want to match only local players? Do you want to match a few remote players? Do you want many players to exist in the same world? Is that world persistent? What is the play like? Simultaneous fast action? Turn-by-turn? Something else?

    If local then you can use local direct connections such as setting up a socket connection over a PeerFinder. If remote then you'll need to have all players connect out to a remote server since firewalls will block direct incoming connections.

    What the servers actually look like will depend on what sort of multiplayer support you want to implement.

    Thursday, February 05, 2015 9:10 PM
  • I want implement a LAN/Wi-Fi matches and my game is a turn by turn type. I want to add, that I want to connect PC and smartphones thught this game.
    Thursday, February 05, 2015 9:56 PM
  • For local connections you can use local direct connections such as setting up a socket connection over a PeerFinder or by direct address.

    Friday, February 06, 2015 2:48 AM
  • Ok, maybe can you suggets some tutorials or somethink like that?
    Friday, February 06, 2015 10:04 AM
  • Friday, February 06, 2015 10:57 PM
  • I now discover, when I will be used a peerFinder and connectasync, I will be only connect two devices, but I want to connect more devices in client-server connections, how can I do it?
    Monday, February 09, 2015 4:14 PM
  • You can set up the connections directly. Please see the documentation I linked previously.
    Tuesday, February 10, 2015 5:34 PM
  • Yes, of course, I can set up connections directly, but one device can have only one connection. That information is here: https://msdn.microsoft.com/en-US/library/windows/apps/windows.networking.proximity.peerfinder.connectasync How can avoid it?
    Tuesday, February 17, 2015 7:23 PM
  • If PeerFinder doesn't meet the needs of your app then don't use it. You can set up the connections directly. See How to connect with a stream socket for one example of how to do this.
    Tuesday, February 17, 2015 8:10 PM
  • Ok, that it is, that I want, but how can create "instances" of my app and discover it in other devices?
     Of course I mean about situation, when the client looking for the availble servers?
    • Edited by MiXenXd Sunday, March 29, 2015 12:23 AM
    Saturday, March 28, 2015 11:25 PM