#103644 - El Hobito - Sat Sep 23, 2006 12:44 pm
Hi people i'd like to start a discussion on how to create a wifi based multiplayer game.
Firstly i'm gonna start with one person being the host and the other being the client. In my game everything is an object and every object has an ai method.
For a basic first test i'm gonna make a test that has the host move player 1 and player 2 is moved by the client.
The Host player will have it ai method controlled by the key presses but what it'll also do is then transmit its coords of both players to the other one so that the host is always in sync.
The client player is always out of sync but its positions will be updated as soon as it recieves the reply from the host.
This is naturally not a good way to do it but its a start which i hope can be built on. Now what are your thoughts?
Firstly i'm gonna start with one person being the host and the other being the client. In my game everything is an object and every object has an ai method.
For a basic first test i'm gonna make a test that has the host move player 1 and player 2 is moved by the client.
The Host player will have it ai method controlled by the key presses but what it'll also do is then transmit its coords of both players to the other one so that the host is always in sync.
The client player is always out of sync but its positions will be updated as soon as it recieves the reply from the host.
This is naturally not a good way to do it but its a start which i hope can be built on. Now what are your thoughts?