I have an array of x and y co-ordinates (json objects) , when plotted they form a path. I am looking to group co-ordinates which fall in the same path into a group. As you can see there are two paths from start to finish.
Background: I am using phaserjs to build a game, the goal is to identify x,y co-ordinates so i can build a tween for a target object.