Results 1 to 7 of 7

Thread: NET GAMES PROGRAMMING

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Hi everybody! I post this thread to see if someone could tell me how to edit my game to make it work within a net. I mean, I wrote a game (cards game) and works fine. But I would like my game to be played by 2 people each one in his/her computer. Now... here's the question: Is there any way to re-program my game to acheive this without rewriting the whole program. I really had no clue on how to do it, but the fact that I need the 2 computers to "read" the same variables seems no too easy to get. Am I wrong?

    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    New Member
    Join Date
    May 2000
    Posts
    4

    Try this ...

    If you just want to make it a 2 Players game, add a tcpServer to one game instance and a tcpClient to the other. I'd suggest, you do it with the winsock control, so you simply have to send the variables as Strings from Server to Client or vice versa.

    If you plan to do a multiplayer game (I'd even suggest this for a two player game as well), you should set up a second project, a game server, which receives and sends data from all Clients.

    Seek MSDN Knowledge Base for information on winsock programming.

    Greetings, maxx


  3. #3
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341

    Question

    Can anyone give us some more info on this or links ??

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    There's a chat example on my website, It's not much work to make it sending variables through the net...

  5. #5
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341

    Exclamation

    Thanks Fox, i will look now !!!

  6. #6
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    So with your chat program, you would be able to send player info such as coordinates? (Im trying to make my own)

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Yep. You just have to replace the [sending text] part with a[type + values] part, that means you send an identifier to tell the other side what you're going to send (position, script calls, ...) and the value which belongs to it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width