Blender, Geometry Node, Procedural, Game Art, Art Style.
the Resample Curve and set it at option Lenght, and you are good to go. The tricky part is connecting the control Points. Control points are saved as a sequence. So in theory you should be able to sample position of point 1, position of point 2 and spawn a line that has its start at 1 and end at 2.