Hello, i am creating a 2D fighting game, (3vs3) (4vs4)…
I learned KryoNet, and tested it out, i know the concept pretty well.
Now my question is how the structure of a multiplayer game like i do should look like?
I think of a structure like this -
[b]The client will send packets when he input something. (like when the client clicks W, A, S or D it will send packet depends on what the client has pressed).
The server will send the game data, (position of every player, what side the every player is looking and the input of every player).
The client will only render the game with the data the server sends.[/b]
---------------------------------------------------------------------------
Its a good idea?
And how often the server should send the game data?
P.S - Because the server sends every player’s input, the client can easily predict and interpolate every player’s actions till the server sends the next game data packet, so the game doesn’t lag.
I hope you understand what i am talking about… lol well actually what am i thinking?! i read some genius articles in this forum, you should understand it very well