|
Hello DIC:
When using UDP protocol for games, is it better to have each player send KEYPRESSES to the server, or coordinates.
For security, I believe sending keypresses is better, for it allows the server to handle the movement of the player, will allow the server to handle collision checks, and will also completely negate the issue of having clients send modified coordinates to the server.
On the other hand, there is a great chance that the benefit of less overhead from UDP will come back in the form of the server being required to handle all movement and collision.
Should the clients handle movement and collision, or is my original idea of having the client send to the server a request to move [left and up] or [jump], etc. better?
If there are websites with full debates from programmers over how to handle these games, please send the link my way! I would greatly benefit from it. Thanks
|