Minimaps

The last approach worked. Which is good, cause I started to get exhausted from changing approaches. (There’s gotta be some sort of coding stamina stat – how many times can you rewrite your code in pursuit of an optimal solution before you get sick of it).

Basically, as I wrote previously, the best way to find two random points that can be connected (at least in my case) is to flood-fill the plane, which gives me all the points that are connected and also connected to the starting point, then select from those points a second point.

So yeah, that part works.

Then I combined that with the minimaps* and put the minimaps on a canvas and… I have to create some sort of compass. Not the regular north pointing type, but a quest compass – one that is simply the border of the minimap and hosts icons for points of interest. The points, as you can guess, need to run around in accordance with the orientation of the player so that he always knows in which directions the dragons be.

Funny thing is – I spent two hours trying to remember how to import a .png file and create a sprite out of it, so that I can even begin working with it in the UI 🙂

  • Yeah, I know, I haven;t disclosed yet what the actual game is about. Got to do it one of this days…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.