The game I'm working on is 1 unit per tile. Each player can move their single unit 1 tile at a time (click the unit and then click the tile to move to).
The server is receiving this command and sending it out as the tile co-ordinate only.
Now this is working absolutely fine locally but problems will develop when it goes on the net.
Tonight I'm just looking at getting a rough sync of server time. Then my plan to keep sync is as follows: - Send the tile to move to along with the approximate server time the command was sent - Server sends to all clients the tile to move to along with the server time to arrive by
I'm not sure if this will be the best approach though?
I have a problem understanding the following - How would you store the game state at the various server times in order that the server can check that the move was valid - Even if you can do that it will conflict with the other players nearby if they've moved as well (i.e. two units move at the same time to the same tile?)
Perhaps somebody could offer me some suggestions?