New answers tagged

1

The easiest way of creating a grid is a 2 dimensional array. You didn't tell what language/game engine you plan to use but a search on arrays combined with your language of choice should give you the information you need. Treat all code examples in this answer as pseudo code- you will have to convert it, but it should illustrate the concept. An array is ...


0

After doing some more research I finally find a solution based on this post: java-merge-adiacent-rectangles-into-a-polygon Here is my solution process sequence in general: Extract all edges from the tiles into a EdgeArray Remove all the edges that has a duplicated one in the EdgeArray this will leaving only the Edges of the merged poly contour I want ...


0

If you go for this connections approach your heuristic will be made up of two parts. First you find the closest connection point to the target level and apply classic Manhattan distance from your current location to this stairs/elevator. Next you check the distance on the target level from the connection point to the actual target, again just Manhattan. You ...



Top 50 recent answers are included