How to show a minimap in a 3d world

Posted by Bubblewrap on Game Development See other posts from Game Development or by Bubblewrap
Published on 2012-04-10T17:12:24Z Indexed on 2012/04/10 17:47 UTC
Read the original article Hit count: 298

Filed under:

Got a really typical use-case here. I have large map made up of hexagons and at any given time only a small section of the map is visible. To provide an overview of the complete map, i want to show a small 2d representation of the map in a corner of the screen.

What is the recommended approach for this in libgdx? Keep in mind the minimap must be updated when the currently visible section changes and when the map is updated.

I've found SpriteBatch, but the warning label on it made me think twice:

A SpriteBatch is a pretty heavy object so you should only ever have one in your program.

I'm not sure i'm supposed to use the one SpriteBatch that i can have on the minimap, and i'm also not sure how to interpret "heavy" in this context.

Another thing to possibly keep in mind is that the minimap will probably be part of a larger UI...is there any way to integrate these two?

© Game Development or respective owner

Related posts about libgdx