I'm knee deep in a dark ocean of fast loops that make a randomly generated map for an Android game I'm developing. I wouldn't ask of you to spill out how to exactly achieve this, but I would really appreciate at least some directions of where to look.
Please login to see this attachment.
About how the map is generated:
- EVERY dot is randomly positioned in the map
- There are 1-3 Green dots that tend to be in the center
- Many Blue dots are generated everywhere
- 1-6 dots are Red
I already got all of this to work properly, but was a fool to believe that was the hardest part..
The goal:
One red dot must go to the nearest green dot, using the blue dots as nodes. Out of 4 different paths, the user must click on the shortest one.
I expected this to be easy with all the path finding extensions out there, but I've seriously underestimated the challenge of this due to the fact everything is randomly generated and positioned. Again I won't ask someone to think it all through for me, but it would be great if someone could tell me what extension or widget would be most recommended for this. There are so many options out there (advanced path movement, widgets, now I'm experimenting with Wargame Map Object), and simply knowing a specific one is my best bet would save me a lot of time.