-
April 25th, 2013, 02:58 PM
#1
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
-
April 26th, 2013, 05:06 AM
#2
Re: multiplyer game ....
If it is for Windows then have a look at Interprocess Communications (IPC)
Victor Nijegorodov
-
April 26th, 2013, 07:55 AM
#3
Re: multiplyer game ....
can you help me to implement this because i hve no about networking...
-
April 26th, 2013, 08:02 AM
#4
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
-
April 26th, 2013, 08:33 AM
#5
Re: multiplyer game ....
i dnt want to give up thiz ,,i want to learn thiz please help to do this
-
April 26th, 2013, 08:37 AM
#6
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
-
April 26th, 2013, 01:28 PM
#7
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)
-
April 27th, 2013, 05:00 AM
#8
Re: multiplyer game ....
sir , i want to connect this by different location through internet using ip(server client) just like counter strike game
-
May 27th, 2013, 04:31 AM
#9
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|