Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Multi player game over internet using WPF/Silverlight.

Multi player game over internet using WPF/Silverlight.

Scheduled Pinned Locked Moved WPF
questioncsharpwpfgame-devsysadmin
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mittalpa
    wrote on last edited by
    #1

    Hi What is the generic way to maintain state in multi-players game over internet, which can be played on GUI of WPF or Silverlight? One player might be on WPF gui and others might be on Silverlight GUI. P2P, HTTP server or some other technique? please advise. thanks, AJ

    Follow your goals, Means will follow you ---Gandhi---

    S 1 Reply Last reply
    0
    • M mittalpa

      Hi What is the generic way to maintain state in multi-players game over internet, which can be played on GUI of WPF or Silverlight? One player might be on WPF gui and others might be on Silverlight GUI. P2P, HTTP server or some other technique? please advise. thanks, AJ

      Follow your goals, Means will follow you ---Gandhi---

      S Offline
      S Offline
      Sdry
      wrote on last edited by
      #2

      Have you already considered wcf services ?

      M 1 Reply Last reply
      0
      • S Sdry

        Have you already considered wcf services ?

        M Offline
        M Offline
        mittalpa
        wrote on last edited by
        #3

        I heard WCF are promising but not sure if they fit for my requirements. Can WCF in such case? If yes, please provide some example links. thanks

        Follow your goals, Means will follow you ---Gandhi---

        S 1 Reply Last reply
        0
        • M mittalpa

          I heard WCF are promising but not sure if they fit for my requirements. Can WCF in such case? If yes, please provide some example links. thanks

          Follow your goals, Means will follow you ---Gandhi---

          S Offline
          S Offline
          Sdry
          wrote on last edited by
          #4

          I have to say, I am new to wcf,wpf & silverlight aswel, but have done some experimenting and test applications. Both a WPF client and Silverlight client can use the same service, there should be loads of blogs,articles and tutorials about linking either. The WCF / WPF Chat Application By Sacha Barber article here on codeproject should probably give a good example of how wcf can be used for multiple users, which you'll need in your game.

          M 1 Reply Last reply
          0
          • S Sdry

            I have to say, I am new to wcf,wpf & silverlight aswel, but have done some experimenting and test applications. Both a WPF client and Silverlight client can use the same service, there should be loads of blogs,articles and tutorials about linking either. The WCF / WPF Chat Application By Sacha Barber article here on codeproject should probably give a good example of how wcf can be used for multiple users, which you'll need in your game.

            M Offline
            M Offline
            mittalpa
            wrote on last edited by
            #5

            I will check Sacha's article. He writes some amazing things. Thanks for pointing. :)

            Follow your goals, Means will follow you ---Gandhi---

            R 1 Reply Last reply
            0
            • M mittalpa

              I will check Sacha's article. He writes some amazing things. Thanks for pointing. :)

              Follow your goals, Means will follow you ---Gandhi---

              R Offline
              R Offline
              Ray Cassick
              wrote on last edited by
              #6

              One thing that may throw a wrench into your idea here is that basing a game on this technology may cause issues related to latency. I am not sure if a game environment is going to be great (may depend on the type of game) for a web service style architecture that forces you into an asynchronous model of service calls and async responses. At least not for ALL of the game interaction.


              LinkedIn[^] | Blog[^] | Twitter[^]

              M 1 Reply Last reply
              0
              • R Ray Cassick

                One thing that may throw a wrench into your idea here is that basing a game on this technology may cause issues related to latency. I am not sure if a game environment is going to be great (may depend on the type of game) for a web service style architecture that forces you into an asynchronous model of service calls and async responses. At least not for ALL of the game interaction.


                LinkedIn[^] | Blog[^] | Twitter[^]

                M Offline
                M Offline
                mittalpa
                wrote on last edited by
                #7

                Latency is not that big of issue in this game. But, I am curious if there are other ways supported by .Net. Any suggestions Ray?

                Follow your goals, Means will follow you ---Gandhi---

                R 1 Reply Last reply
                0
                • M mittalpa

                  Latency is not that big of issue in this game. But, I am curious if there are other ways supported by .Net. Any suggestions Ray?

                  Follow your goals, Means will follow you ---Gandhi---

                  R Offline
                  R Offline
                  Ray Cassick
                  wrote on last edited by
                  #8

                  Good old fashioned IP connections and message passing works good in cases where you need fast response. Can't beat it unless you anticipate a high number of connections and are not looking at using a server farm. You can use a mixture of TCP and UDP for command and response type connections to keep your port utilization lower, maybe even a mixture if WPF and IP may be a good solution. I guess it really depends more on the game type.


                  LinkedIn[^] | Blog[^] | Twitter[^]

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups