pshaughn / okayworld

backend for play.okayideas.com
0 stars 1 forks source link

decide on profile format #3

Open pshaughn opened 6 years ago

pshaughn commented 6 years ago
pshaughn commented 6 years ago

one thing that'd be generally good is color scheme, maybe a 1st, 2nd and 3rd color that must be distinct, chosen from a finite palette that does not include anything too close to pure white or black. these could be encoded as just 3 characters in the profile string, with default behavior kicking in if a later character is the same as an earlier one. games could use these colors in different ways, including taking them as representative colors from larger subpalettes instead of just using the exact rgb

pshaughn commented 6 years ago

first pass at it is not picking defaults well; the username "hashing" is actually throwing out most of it, and it's not avoiding redundant colors.

pshaughn commented 6 years ago

so far so good; first three characters of profile are base-32 selections from a 32-color palette, although the desaturated green/blues might be a bit too close together

pshaughn commented 6 years ago

above considerations are not going to be valid if the current rewrite works; user data will be arbitrary json values set only by playset code. there will need to be considerations of which values are worth keeping persistent across game modes though