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. Web Development
  3. ASP.NET
  4. Gaming Logic in ASP.Net

Gaming Logic in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netgame-dev
4 Posts 2 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.
  • P Offline
    P Offline
    pakFari
    wrote on last edited by
    #1

    hi,i am developing web game.Two clicnt may play this game. In which i want to change the second player`s page after the complitition of first players turn. can any one give me loginc to do such a task in asp.net using threading or any other logic.(this game will be played on same or different PCs)

    C 1 Reply Last reply
    0
    • P pakFari

      hi,i am developing web game.Two clicnt may play this game. In which i want to change the second player`s page after the complitition of first players turn. can any one give me loginc to do such a task in asp.net using threading or any other logic.(this game will be played on same or different PCs)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Threading is not the issue, the issue is that a postback needs to occur for a page to change. I think there's an article on CP on getting controls to update themselves without full postback. The other option is to get the page to autorefresh. I hope it's not an action game, asp.net is just the wrong way to do that. Christian Graus - Microsoft MVP - C++

      P 1 Reply Last reply
      0
      • C Christian Graus

        Threading is not the issue, the issue is that a postback needs to occur for a page to change. I think there's an article on CP on getting controls to update themselves without full postback. The other option is to get the page to autorefresh. I hope it's not an action game, asp.net is just the wrong way to do that. Christian Graus - Microsoft MVP - C++

        P Offline
        P Offline
        pakFari
        wrote on last edited by
        #3

        hi, actually i am tring to develop Tic-Tac toe game using ASp.Net, so that it can be played on LAN or atleast one PC using different web pages, can u tell me batter logic to do this.i tried through thread but could not get resultes. plz guid me i will be thankful to u.

        C 1 Reply Last reply
        0
        • P pakFari

          hi, actually i am tring to develop Tic-Tac toe game using ASp.Net, so that it can be played on LAN or atleast one PC using different web pages, can u tell me batter logic to do this.i tried through thread but could not get resultes. plz guid me i will be thankful to u.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I reiterate - using threads is meaningless. HTML is a disconnected model, and ASP.NET just serves HTML. That's all it does from the client perspective. The only way to find out if a client has made a move is to keep on auto refreshing, which you can do with a javascript timer. Basically, ASP.NET is not a platform for writing games on. Christian Graus - Microsoft MVP - C++

          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