starblast-modding icon indicating copy to clipboard operation
starblast-modding copied to clipboard

Get ship's color

Open GatoCreador887 opened this issue 6 years ago • 1 comments

A property that ships would have that stores their color.

> game.ships[0].color
#F00

It could be useful for UI. Also, it would, in theory, when in a team game, return the team color since ships don't really have an individual color then.

GatoCreador887 avatar Jul 13 '18 16:07 GatoCreador887

alright, let's generalize it a bit since there's no way to detect color of ship in the game:

Please add a hue property for each ships (ship.hue) so that we can read each ship's hue value.

> game.ships[0].hue
128

It could be useful for UI though.

Bhpsngum avatar May 27 '21 18:05 Bhpsngum