Search found 52 matches

by marco.lizza
Thu Sep 08, 2016 9:03 am
Forum: Support and Development
Topic: Soo what now?
Replies: 4
Views: 3862

Re: Soo what now?

Yes, the approach I suggest is similiar to this. However, keep in mind that you don't necessarily need to incorporate a full-fledged abstraction model and/or library.
by marco.lizza
Thu Sep 08, 2016 8:39 am
Forum: Support and Development
Topic: Soo what now?
Replies: 4
Views: 3862

Re: Soo what now?

Do I have to adopt some kind of OOP ?
Not necessarily. An entity functional mixin-based model would be more than enough.
by marco.lizza
Thu Aug 25, 2016 12:29 pm
Forum: General
Topic: Do you work solo or with a team?
Replies: 7
Views: 5887

Re: Do you work solo or with a team?

When I started coding back in the early nineties, changes to be work in teams were rather scarce, due to difficulties in both the communication (you had to rely upon telephone e snail-mail to share stuff) and popularity of coding among teens (I was the only one seriously interested on the subject am...
by marco.lizza
Tue Jun 28, 2016 2:40 pm
Forum: Support and Development
Topic: finding where does a line touches a polygon
Replies: 5
Views: 3717

Re: finding where does a line touches a polygon

For any pair of point defining a segment you can 1) deduce the line formula, 2) solve the simple linear system (which is, in fact, a closed-formula) to find the intersection point, then 3) test if the intersection point is between the point enclosing the segment. You should iterate these steps for e...
by marco.lizza
Fri Jun 24, 2016 12:05 pm
Forum: Support and Development
Topic: Using slope to determine angles/modifiers between two points?
Replies: 10
Views: 5386

Re: Using slope to determine angles/modifiers between two points?

You can simply use "atan2()" to find the angle for the movement, the proceed in that direction...
by marco.lizza
Wed Jun 15, 2016 6:59 am
Forum: Support and Development
Topic: Diagonal pathfinding
Replies: 15
Views: 11112

Re: Diagonal pathfinding

pgimeno wrote:Doing a floodfill of the player's cells from the starting point to see if the ending point is touched
I also thought about flood-filling the grid... but, quite frankly, I still don't get the game mechanics. :P
by marco.lizza
Tue Jun 14, 2016 11:10 am
Forum: Support and Development
Topic: Diagonal pathfinding
Replies: 15
Views: 11112

Re: Diagonal pathfinding

I'm trying to use the pathfinding libraries to see if a player has won Which is the criteria to determine if a player has won? Despite being a possible approach, I don't think that pathfinding is the most convenient tool to use for this problems. You should simply scan the board and check if some p...
by marco.lizza
Mon Jun 13, 2016 8:16 pm
Forum: Support and Development
Topic: Diagonal pathfinding
Replies: 15
Views: 11112

Re: Diagonal pathfinding

To be honest, implementing a simple (unoptimized) Dijkstra's pathfinding algorithm is quite simple.

The most difficult thing is handling the representation of the map in a graph-oriented way.

How is your game "world" represented? Could you be more specific and give some details about?
by marco.lizza
Mon Jun 13, 2016 2:03 pm
Forum: Support and Development
Topic: Diagonal pathfinding
Replies: 15
Views: 11112

Re: Diagonal pathfinding

I'm not using any 3rd party library, but in my pathfinding module this is a simple matter of considering diagonal steps a valid "neighbour" move.

Are you using any specific library?
by marco.lizza
Fri Jun 10, 2016 7:15 pm
Forum: Support and Development
Topic: Using Git Hub for love2d projects
Replies: 7
Views: 5815

Re: Using Git Hub for love2d projects

If you want to use github, you need to learn Git. I strongly recommend it because versioning your code is very useful, but you should realize that git and github are a VCS and a platform for it and very different from a storage service like Dropbox. Totally agree. I've been using SCMs and VCS since...