How to show a minimap in a 3d world
- by Bubblewrap
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?