Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

LibGDX – Show a minimap

$
0
0

I’ve started to develop a small roguelike game in LibGDX. I’ve also made a minimap class, which creates and updates the minimap as the player explores the dungeon, by using a Pixmap. The minimap class has an OrthographicCamera (currently unused), which will be used for centering the minimap on the player. The minimap is currently rendered with it’s own SpriteBatch. Now I’d like to put the minimap on the upper right corner, and clip it, because it is so big, that it’d obscure the half of the screen. I’m not really sure how to do this clipping part. I assume I should use the ScissorStack class, but the LibGDX wiki is a bit uninformative for me.

Current view


Viewing all articles
Browse latest Browse all 434

Trending Articles