[Solved] Flying through starfield. LibGDX


While, you still need to think this through, I’ll point you in the right direction, I would recommend you create an object with values such as a vector2 for the spawn point and a vector2 for the direction, as well as an integer for the time counter, I would update these variables in a render function within the object. Then create an array of this specific object and update each value in the game render function using a for loop, and in that loop render a line with a shape renderer of a length depending on the time passed, and in the direction of the vector.
Also, if you liked this answer but would like further detail, check this as an answer and I’ll edit in an example

2

solved Flying through starfield. LibGDX