Hello,
at the moment i try to build a mulitplayer server for a roundbased Multigame for two players. First i describe how the game should be work. First the client press a button and connect to the server. Now, is there a second client (anywhere in the internet) and press the button too, the server put him in one “session/thread” with the first player. Is there now two other player who want to play, the server starts a new “Thread”. for this two players and so on.
But now i didn’t know how to handel thies connection and if a play, for example, moves a stone the right play get this update from the server.
Can anybody tell me how it works or have some codesnippets?
For your information, i want to use kryonet.