Archived

This topic is now archived and is closed to further replies.

BauerGL

Tips for a network n00b?

Recommended Posts

Okey I''ve come to the stage where I don''t want to be alone anymore.. Well it''s like this. I have made some fairly simple games and now I want to make some simple multiplayer games. The game I have in mind is going to be a fly-shooter, approximately 2-4 players, pretty intense action etc. So my question is how should I go on about creating the host/client, what data should I send, which API/protocol to use? I want it so that the host also can play at the same time, and then up to three clients can connect. I need to know the position of every player and their bullets and some other objects. So I should probably send those coordinates whenever they are changed? Should I make it so that the host calculates all collision detection or should each client check its objects and send a message if something collides? I am very clueless in all this so any help is gratefully accepted. Thanks, BauerGL.

Share this post


Link to post
Share on other sites
C++???, target system????



with windows, you woould want to go for tcp/ip with winsock... really easy after the first few bits.


  
int main()
{
// basic winsock code:


// start winsock up


// listen(server) / connect(client)


// accept(server)


// send/recv


// close the connection




game dev . net has lots of articals on winsock...

Share this post


Link to post
Share on other sites