CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2013
    Posts
    4

    multiplyer game ....

    hey,
    i made a game on c++ using allegro now i want to make it multiplayer game means connect pair to pair connection with another pc and enjoy the game......how i develop this connection please help me
    help me with code .......please help urgent

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: multiplyer game ....

    If it is for Windows then have a look at Interprocess Communications (IPC)
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2013
    Posts
    4

    Re: multiplyer game ....

    can you help me to implement this because i hve no about networking...

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: multiplyer game ....

    To implement what? Pipes? Sockets? ...?
    You have first to understand what type of IPC would be the most suitable for your games. The we could probably try to find some code examples for you and help you with the problems with possible code errors.
    And if you have no idea about networking then please, learn it, read about it, try some samples... or just give up!
    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2013
    Posts
    4

    Re: multiplyer game ....

    i dnt want to give up thiz ,,i want to learn thiz please help to do this

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: multiplyer game ....

    Well, begin with the learning how to write properly so everyone here could read your posts. Please, use punctuation, small/capitl letter. Apply SpellCheker to your text before posting it.
    Then read about IPC in MSDN. The link I already provided.
    Victor Nijegorodov

  7. #7
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: multiplyer game ....

    Are the two (or more?) pcs just connected to a local network in the same physical location or are they connected in different locations and will use the internet for connection?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  8. #8
    Join Date
    Apr 2013
    Posts
    4

    Re: multiplyer game ....

    sir , i want to connect this by different location through internet using ip(server client) just like counter strike game

  9. #9
    Join Date
    May 2013
    Posts
    1

    Re: multiplyer game ....

    If you are not familiar with the network programming, please, try out this library http://libunicomm.org. Maybe it would be helpful for you. This is the library we made and used in our projects. We decided to publish it as open source in hope it could be useful for anybody else.

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

Featured