Minimap

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
coder543
Posts: 17
Joined: Sun May 31, 2009 4:40 pm

Minimap

Post by coder543 »

This one should be somewhat easy if I'm right. Would there be an easy way for me to draw a black box onto one corner of the screen, then calculate the locations of different units and put a colored dot on the black box relative to the realspace location of the unit? (Obviously to from a minimap)

I don't exactly know how to draw onto the screen like that.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

You can use IVideoDriver's draw2d methods or you can use the drawPrimitive methods.

You should make yourself familiar with the documentation.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
coder543
Posts: 17
Joined: Sun May 31, 2009 4:40 pm

Post by coder543 »

lol, documentation... I really should, I guess I might spend a few minutes over there.
coder543
Posts: 17
Joined: Sun May 31, 2009 4:40 pm

Post by coder543 »

ok, the minimap is working.

Thread solved.
stash
Posts: 47
Joined: Wed Dec 12, 2007 11:28 am
Location: Brasil, SC

Post by stash »

Hey coder543.. do you can available your source (or a fragment) to show the minimap??
Post Reply