Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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? – David Gouveia Mar 28 '12 at 11:21
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 – David Gouveia Mar 28 '12 at 11:42
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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