Advertisement

Tips for a network n00b?

Started by August 30, 2002 05:09 PM
1 comment, last by BauerGL 22 years, 5 months ago
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.

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Anyone? Any answer/tip?

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

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...
If you were MEANT to understand it, we wouldn't have called it 'code'

This topic is closed to new replies.

Advertisement