Allow Snakes to have multiple colors/customizations #193
Replies: 2 comments 1 reply
-
One other idea: Let the /info response color field be an array
Then the game could either be set up to randomly pick a color each time, or only use the second and third colors when there are multiple snakes of the same id. |
Beta Was this translation helpful? Give feedback.
-
Hey @BoldBigflank, thanks for the suggestion! For example: Metadata request: If you're willing to have a few copies of your snake like in your second image, I think that would allow you to customize it. |
Beta Was this translation helpful? Give feedback.
-
I would like to have my snake be multiple different colors for aesthetic purposes. There are a few ways we could make this happen.
Include snake id as a query param in the GET /info route
If instead of just calling
https://{battlesnake_url}/info
it could callhttps://{battlesnake_url}/info?id=snk_XXXXXXXXXXXXXXXXX
and then my logic could change the response data based on that query data. It wouldn't break existing snakes, but I would need to look up colors either in code or a database to take advantage of it.Allow for including a custom query param in all requests

In the "Edit Snake" page, perhaps have an option of a query string that will be passed to all requests. This is similar to the first, but different enough to be its own idea.
Let more advanced users set the url for each option:
While the "Battlesnake URL" field makes a bunch of assumptions, you could also have a "custom endpoints" checkbox that opens up four more options, where you could set the full url for each endpoint.
Beta Was this translation helpful? Give feedback.
All reactions