[Tutor] how to build a multiplayer game?
Alan Gauld
alan.gauld at btinternet.com
Wed Apr 11 19:32:54 CEST 2012
On 11/04/12 11:02, Surya K wrote:
> I have written the basic part of the game. Now I want to make it a
> multiplayer one. (Its not a web app, a OS application)
>
> So, I just wanted to know how do it.
>
> Which topics I should refer? Network Programming or Web Programming or
> Internet Client Programming.
That all depends on how you decide to build the game. And what kind of
interaction you need. The fastest most direct route is to use raw peer
to peer sockets and send string messages between the two computers.
But then you need to decide how to set up the connection, who is master
anmd who is slave per session etc. A lot less work if you adopt the web
model of an app server in the middle and both players connect to that.
For straight sockets you should find examples in Wes' book.
Or you can read the network programming topic in my tutorial.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list