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

Multiplayer #8

Open
bedekelly opened this issue Mar 2, 2017 · 1 comment
Open

Multiplayer #8

bedekelly opened this issue Mar 2, 2017 · 1 comment

Comments

@bedekelly
Copy link
Collaborator

This might not fit into one issue, but here's roughly what we need to get multiplayer working:

  • Handle "other person's gamestate" messages from the server
  • Interpolate other person's gamestate with local physics
  • Make sure input etc. is only handled for our window
  • Display "opponent" somewhere visible on the other screen
  • Handle matchmaking on the server
  • Play audio when the opponent has a collision
@bedekelly
Copy link
Collaborator Author

To make multiplayer work on the server, the way game sessions are handled will have to change dramatically. Here's a rough synopsis of the changes that need to be made on server-multiplayer:

  • Spawn a new thread for each concurrent connection
  • Initial negotiation for either an AI player or an opponent
  • If AI requested, start AI thread etc. (more details to come)
  • If human opponent requested, check if there's anyone waiting:
    • If there is, match with them
    • If not, add ourselves to the queue

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