starblast-modding
starblast-modding copied to clipboard
Get ship's color
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.
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.