making easy multiplayer game
hi,
I would like to create as feature a mulitplayer game and I was wondering how.
I have the latest directx, directx SDK, C#, all frameworks,... and a server
anybody can help me to good tutorial and tell if I need to use directx SDK for this?
When someone wants to make a multiplayer game, I usually suggest to write a multiplayer Pong game. It will get you though all the basics when it comes to online gameplay. DirectPlay is deprecated, so the System.Net namespace is what you need. I don't know any tutorials offhand, but learning how to do 2d in Direct3D is the first step. Good luck.
I looked the web already but can't find any decent tutorial, can somebody help me?
I would like ot have a tutorial that learns me to handle it with a webserver, thank you!
There are several books on how to do this, check your favorite web or local bookstore for more information. Also check the Gamedev.net forum on Multiplayer and Network Programming.
Fata1Attack wrote: |
| I looked the web already but can't find any decent tutorial, can somebody help me? I would like ot have a tutorial that learns me to handle it with a webserver, thank you! |
|
If you're looking for a start-to-finish guide on "how to code a game", I'm sorry but you're probably not going to find one anywhere. Coding any complete application is a serious piece of work, and games are perhaps the most involved (as they use possibly the broadest collection of the PC's resources). If you've got specific questions, I suspect most of us here would be more than happy to help you out in any way possible. However, if you're looking for general "how do i make a game" information, this isn't really the appropriate place.
Please believe that I'm not trying to discourage you! Ten years ago I was in the same position that I think you're in now -- I had the tools to make a great game, but I didn't know where to begin. I speak from experience when I say that you can't simply "dive in" and create a game.
On the other side of the coin, you're in a wonderful position to learn. You've got all the tools. You've got C# Express Edition, which -- if I may be so bold -- is going to be much easier for a novice to use than, say, C++. The single best thing you can do, if you learn the way I do, is to download sample code and look at every line. For every line you see, you should be able to answer the question "What does this line do, and why does it do it?". Once you've got a basic grasp on the language and the IDE, the help files are absolutely wonderful; heck, most everything I'm able to do in VC++ I owe to the guidance provided by the help files! 
I know that's something impossible,
but I would lik to see a small tutorial that explains me: how to add a server, connect to the server, transfer files and read those files, disconnect from server.
Thanks
Anything is possible if you've got the creativity to imagine it and the time to make it work!
Since I believe the DirectPlay architecture is deprecated, this is a question that should probably be asked in either a .NET forum or the winsock forum.
If you're interested in just the client / server aspect of it, then you should try creating a simple server and then join from a client. From that point, move to transmitting a string. Then transmit a string and do something (server side) based on the content of the string. Using that type of logic will allow you to move onwards and do more involved network coding. If you need a tutorial on how to do this, e-mail me and I'll send you some basic code on how it is done with comments so that you will understand it.
You will find that posting to forums will most likely not get you code (at least not a large amount of it). This is because people are busy and have lives, jobs, etc... The most important thing that you can learn right now is how to find this stuff on your own; however I've been there myself and sometimes you just don't even know what to look for so shoot me an e-mail and we can start from there. I cannot take you all the way to a finished game, but I can get you started with the network coding at least. It will all be in C#. I assume some level of programming knowledge on your part, but if that's not the case then you're wasting your time trying to do network programming first. Begin with something far simpler (although .NET makes sockets as simple as they can be in my opinion).