T
TypicalHog
Guest
I'm currently storing stars in 2D arrays.
Star[star_index, 0] // X pos of a star
Star[star_index, 1] // Y pos of a star
Star[star_index, 2] // Color of a star
Each array cointains 64-512 stars.
I can't have star array for every chunk in my game.
All chunks also can't have only 1 star array because that would look too repetetive.
And I don't want to create separate array for every star array:
Star00, Star01, ... , Star15
Any ideas?
Star[star_index, 0] // X pos of a star
Star[star_index, 1] // Y pos of a star
Star[star_index, 2] // Color of a star
Each array cointains 64-512 stars.
I can't have star array for every chunk in my game.
All chunks also can't have only 1 star array because that would look too repetetive.
And I don't want to create separate array for every star array:
Star00, Star01, ... , Star15
Any ideas?