Hello fellow programmers,
I am trying to create a game where you can put down elements like dirt and water (that's all I have yet I started yesterday) and it comes down as dots and they fall on each other and react differently.
much like this [Moderator edit: irrelevant link removed]
you use the mouse to place elements but it separates the dots when you make a large line of them. I know if I make a bunch of dots in between the two points I can make a line that is not separated. heres a picture:
Attachment 3907
do you guys know a way of finding all the points of any line from point A to point B? Code examples appreciated.
