Search found 4 matches

by Psymong
Sat Feb 16, 2013 11:37 am
Forum: Support and Development
Topic: Drawing lines between random points
Replies: 7
Views: 2800

Re: Drawing lines between random points

Thankyou micha, now i understand what you mean by using flood-fill in this context. I still cant quite work out how to incorporate this into my code though; so i should put the results of these checks in a separate table, adding the values 'connected' to all each of the points in its pointer[x].link...
by Psymong
Sat Feb 16, 2013 2:55 am
Forum: Support and Development
Topic: Drawing lines between random points
Replies: 7
Views: 2800

Re: Drawing lines between random points

Ok, with the help of a very kind person on #love, i've come up with a better system for connecting the points. however, it is still possible for clusters of points to be disconnected. i.e. there are parts of the map that can be inaccessible to the player. how can i check for this and ensure it doesn...
by Psymong
Thu Feb 14, 2013 8:27 pm
Forum: Support and Development
Topic: Drawing lines between random points
Replies: 7
Views: 2800

Re: Drawing lines between random points

That's kind of it. I've managed to get a system for generating points (with a bit of help) that works quite well. The problem at the moment is working out a way to draw lines between these points that ensures they all connect (but not necessarily directly connect). thanks for the pointer though, i a...
by Psymong
Thu Feb 14, 2013 5:28 pm
Forum: Support and Development
Topic: Drawing lines between random points
Replies: 7
Views: 2800

Drawing lines between random points

Hello all! I'm trying to generate a random map of points with multiple routes through them. However, the method i've come up with isnt very efficient; sometimes in generates some very cluttered areas, and sometimes clusters of points are cut off from the rest. can someone please advise a better way ...