Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send input to server and use server as player authority #8

Open
meoblast001 opened this issue May 21, 2017 · 0 comments
Open

Send input to server and use server as player authority #8

meoblast001 opened this issue May 21, 2017 · 0 comments
Assignees
Milestone

Comments

@meoblast001
Copy link
Owner

The client sends all recognised user input to the server thread and sends it to the server. The server then identifies which player applied this input based on the socket on which it receives the message. Input is sent as a reliable message (TCP). The client does not immediately respond to user input, but updates its position completely based on transformations sent by the server (server is absolute authority).

Note: The keys that the player presses are not sent to the server, but the meaning of the key is sent. This allows the client to change key layouts while the server is oblivious.

When this ticket is completed, a multi-user test is to be done to benchmarks the affects of latency. The results will then be communicated in this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant