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

Player-specific colors and names #10

Open
thesauri opened this issue Apr 3, 2020 · 2 comments
Open

Player-specific colors and names #10

thesauri opened this issue Apr 3, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request todo Prioritized to be done

Comments

@thesauri
Copy link
Owner

thesauri commented Apr 3, 2020

Players could have different colors

  • Should there be a difference only between you and all other players, i.e. you are say blue and the rest black?
  • Should every player have a unique color?
  • Is this color randomized?
  • Does the player pick a color before joining the game? Pick in game?
@thesauri thesauri added the enhancement New feature or request label Apr 3, 2020
@thesauri thesauri changed the title Player-specific colors Player-specific colors and names Apr 13, 2020
@thesauri
Copy link
Owner Author

  • Players are assigned a random name (e.g. adjective + creature) and color when joining
    • Done in the frontend and notified to the server
    • No actual persistence of names, clients can assign names as they wish and is only valid during the session
  • Players can change the name after joining if they desire, this updates the name but not the color
  • Lines and words are drawn according to the players' colors

@thesauri thesauri added the todo Prioritized to be done label Apr 13, 2020
@Pingviinituutti
Copy link
Contributor

Pingviinituutti commented Apr 15, 2020

I suppose this could just be implemented via session cookies? Then we could just store the name and colour of the player on a per game basis in the cookie.

However, this could lead to some players having the same colour if the colour pool is not big enough. But I don't think that's a bad thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo Prioritized to be done
Projects
None yet
Development

No branches or pull requests

3 participants