Page 1 of 1

Movement Example - Euclidean movement by mouse clicking

Posted: Wed Feb 03, 2016 7:57 pm
by SrHypercube
Hi everyone,

Last year, I was learning how to work with this great game's framework because I wanted to develop games. I was making some scripts to test some ideas I had. When I saw the default examples, I didn't find anyone like "I push the buttons of the mouse and something follows it until it gets to the point" like every strategy game does with the troops. So I did a very simple example for whoever is doing something like that could start from this point.

https://github.com/GuilledelaCruz/L-VE/ ... clidea.lua

Hope It helps. It would be great if it can be included in the official default examples of LÖVE.

Re: Movement Example - Euclidean movement by mouse clicking

Posted: Wed Feb 03, 2016 11:47 pm
by rmcode
SrHypercube wrote:Hi everyone,

Last year, I was learning how to work with this great game's framework because I wanted to develop games. I was making some scripts to test some ideas I had. When I saw the default examples, I didn't find anyone like "I push the buttons of the mouse and something follows it until it gets to the point" like every strategy game does with the troops. So I did a very simple example for whoever is doing something like that could start from this point.

https://github.com/GuilledelaCruz/L-VE/ ... clidea.lua

Hope It helps. It would be great if it can be included in the official default examples of LÖVE.
You could add it to the wiki. Anybody with an account can edit the wiki.