Hi,
Can anyone help me on understanding some multiplayer concepts? I know how to do netwrk programming with blitz, sending packets etc, but I really can't get my head around what happens on the server and what happens on the clients.
I assume that when a player connects (or enters an area), a "state" of the area is sent with the positions of all players and enemies. I also assume that the clients work with a command buffer that stores commands that get there either trough the network or by local actions (key presses etc).
But what happens when, for instance, a player presses the button to walk forward. Does his client send out a "keydown x" command and when it is released a "keyup x" command to the server? Or does it send some command for each frame that the key is down? Or does it work with sending coordinates?
And what about enemy AI? Is this all done on the server?
Does anyone know of any tutorial/document that explains this, or could anyone explain to me how this works?
Thanks a lot!
PS: I'm not some newbie taking on an overly ambitious mmorpg project, it's mainly curiousity.
Can anyone help me on understanding some multiplayer concepts? I know how to do netwrk programming with blitz, sending packets etc, but I really can't get my head around what happens on the server and what happens on the clients.
I assume that when a player connects (or enters an area), a "state" of the area is sent with the positions of all players and enemies. I also assume that the clients work with a command buffer that stores commands that get there either trough the network or by local actions (key presses etc).
But what happens when, for instance, a player presses the button to walk forward. Does his client send out a "keydown x" command and when it is released a "keyup x" command to the server? Or does it send some command for each frame that the key is down? Or does it work with sending coordinates?
And what about enemy AI? Is this all done on the server?
Does anyone know of any tutorial/document that explains this, or could anyone explain to me how this works?
Thanks a lot!
PS: I'm not some newbie taking on an overly ambitious mmorpg project, it's mainly curiousity.