5
\$\begingroup\$

simple map

The map i would like to create is like this one, but simpler , what i want to have is a geographical map indicate high /low and a point that show where am i and points indicate enemies

Thank you

\$\endgroup\$
  • 2
    \$\begingroup\$ The implementation depends on a number of factors that you didn't specify. Does the map need to rotate like the one in the picture? And what shape do you want it to be? \$\endgroup\$ – David Gouveia Mar 28 '12 at 11:21
  • 2
    \$\begingroup\$ To be more clear here's the possible solutions depending on your requirements (1) No rotation + Rectangle shape = SpriteBatch with special sourceRectangle and destinationRectangle parameters. (2) Rotation + Rectangle Shape = SpriteBatch with vertex shader like this example. (3) Rotation + Any other shape = SpriteBatch with stencil buffer \$\endgroup\$ – David Gouveia Mar 28 '12 at 11:42
1
\$\begingroup\$

If you want that minimap for 3D game

  1. If your environment is created from heightmap then use heightmap as minimap

  2. Or just move camera up, to face down the ground, change projection to orthographic, and render it as depth map.

If you want to know just how to draw minimap, you can use SetData on Texture2D, to create texture and then pass it to spriteBatch.Draw

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.