hello all !
I am at the beginning of the creation of a space 4x and first of all i need to generate a galaxy of stars linked by connecting lines that changes in each new game, I'll add a few pictures to show what i mean




as you see, how can i have a simple 2d map with connected points like these images ? I thought to program each line with a length and a random angle but it is still unclear, thanks in advance !