🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Minimap

Published November 19, 2013
Advertisement
aG592y8.jpg

Spent some time today to implement an overhead minimap, which is actually a feature I am still on the fence about. I remember at times in other games when I just spent too much time watching the minimap. It pulled me out of the game somewhat, and I'm not sure I want that for this game. I think there is something to be said for a game where you live in the game view, and where you have to rely on memory and observation rather than an over-map. But I put it in there, and when the time comes I'll observe players and see how they use it as well as how often they use it.

The minimap lives in a second scene structure, one that has its own camera with an orthographic projection. By adding a MinimapMarker component to any object you add a marker to the minimap that will track that object's position. You can specify a model and material to use for the marker; currently, I just use a basic hex model and a solid color, partially transparent material, but eventually I might switch to small icons or something instead. The map tracks the camera position and orientation around the vertical axis, so that directions in the view and the map match up. I have to admit that it does help with navigating the map, so it just might end up being a feature, regardless of my personal ambivalence toward minimaps in general.
Previous Entry Another GC Gameplay Video
Next Entry Some more buttons.
4 likes 5 comments

Comments

polyfrag

That map is huge. How do you figure out which subset to draw?

November 19, 2013 06:07 AM
riuthamus

love love love, what you are doing my friend!

November 19, 2013 09:22 AM
JTippetts

@riu: thanks, man :D

@polyfrag: I'm not doing anything myself. I just let the engine do the culling. Urho3D is pretty speedy, even with my unoptimized scenes.

November 19, 2013 05:03 PM
polyfrag

Do you divide tiles into regions and check if they're in the frustum?

November 20, 2013 02:46 AM
JTippetts

I really don't do anything at all. I just instance the geometry and dump it into the scene. A time might come when I'll need to do an optimization pass of some sort on things, perhaps split it up into regions and so forth, but that time is not right now since things are speedy enough even on my crappy computer.

November 20, 2013 04:23 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement