Jump to content
  • Advertisement

Archived

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

BauerGL

Tips for a network n00b?

This topic is 5866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!