Line following

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Line following

Post by darkfrei »

Hi all!

I want to make a program with moving agent, that can follow the drawn line.

Here is the first version, you can just draw (vector) lines.
Attachments
Screenshot_20210730-131945.png
Screenshot_20210730-131945.png (16.77 KiB) Viewed 4831 times
2021-07-30T09_36_04-Untitled.png
2021-07-30T09_36_04-Untitled.png (11.36 KiB) Viewed 4846 times
line-following-01.love
(918 Bytes) Downloaded 123 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: Line following

Post by darkfrei »

Second version:

every drawn line has an agent, that follows that line and disappears on the end of it.

Attachments
2021-07-30T16_59_00-Untitled.png
2021-07-30T16_59_00-Untitled.png (23 KiB) Viewed 4815 times
line-following-02.love
(1.48 KiB) Downloaded 133 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: Line following

Post by darkfrei »

Third version: lines are smooth and line crossings are shown.
Attachments
2021-08-01T22_25_41-Untitled.png
2021-08-01T22_25_41-Untitled.png (26.49 KiB) Viewed 4678 times
line-following-03.love
(2.01 KiB) Downloaded 110 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Line following

Post by Gunroar:Cannon() »

Things are getting heated! Nice! These agents don't have to only be used by line drawing, do they? They can be used for any other thing with paths, they use steering behaviour right?
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: Line following

Post by darkfrei »

Gunroar:Cannon() wrote: Sun Aug 01, 2021 9:35 pm Things are getting heated! Nice! These agents don't have to only be used by line drawing, do they? They can be used for any other thing with paths, they use steering behaviour right?
Yes, for example the path, that can be used by mobs. But it hasn't the backward direction right now. Just creating at the line's begin and teleports from the end to the start again.
Also one line can have multiple agents.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests