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 server #10

Open
parasyte opened this issue Nov 5, 2012 · 1 comment
Open

Multiplayer server #10

parasyte opened this issue Nov 5, 2012 · 1 comment
Assignees

Comments

@parasyte
Copy link
Member

parasyte commented Nov 5, 2012

Server needs to do a lot of things, since it acts as the "source of truth" for the game.

  • Need multiple channels, E.g. private games between friends, and matchmaking games.
  • To "do it right", keep the connections open and stream JSON messages back and forth from the clients.
  • Keep track of which users are connected to which channels, so messages can be dispatched appropriately.

The first iteration of the server will probably just dispatch every message it receives. A more complete server would parse the messages and act upon them appropriately; maybe dispatching, and maybe modifying the message before dispatching.

@ghost ghost assigned ericachang018 Nov 5, 2012
@ericachang018
Copy link

Questions!

  • Are Multiple channels like Sessions in Flask?? (how I understand sessions are that they hold unique information about each particular browser so that the browser has a memory of who is playing and where they are in the game and other information that might be needed).
  • can you explain to me more about what the messages are? I've been working a lot with flask for my personal project is it like the GET and POST http requests? and by dispatch is that similar to a render template function call?

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

2 participants