Making a Mini-map

4.57143
Your rating: None Average: 4.6 (7 votes)
Difficulty Level: 
Advanced
Topic: 
Game Coding

Mini-maps are common features of commercial games but a very rare sight in click games. Mainly because its perceived as quite a hard thing to do.. which indeed it is. However, it is in fact not quite as complicated as you might think. The complexity of the maths involved is actually pretty basic, its just a matter of building up all the basic components required and bringing them together. There is also the main difficulty of overcoming MMF itself which often requires some devious code. Sometimes you might get the feeling that you're having to trick MMF into doing what you want.

This tutorial shows how to make a mini-map using formula rather than inputting the specific numbers required for your particular requirements. This way you can simply place your mini-map in any situation and it will still work correctly. You could have a play field of 1024x768 or something ridiculous like 4500x5 and no matter the relative proportions of the mini-map itself it will still display the units location correctly.

When ever you can you should try to make things with formulae rather than specific numbers. You may have code throughout a programme that refers to a value that lets say happens to be 8. If you then realise you actually want that value to be 6, you might have to trawl through the whole code finding where you've used it. OR!!! you could have had the number 8 entered into an alterable value somewhere and used that. So when you want to tweak it, its just a matter of changing one value and all events relating to it will adapt accordingly

This download includes a mini-map tutorial as well as a few others.

~DOWNLOAD~
http://www.filefront.com/14525049/RTS_Tutorials.zip

Comments

Bugsey's picture

You did a great job! There should be more advanced tutorials like this these days.

RickyRombo's picture

I made a minimap widget that can help people, too.

I don't want to spam up this post or steal its viewers, but the option for a widget is available! :)

davesteve12's picture
4

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
Dave @ van insurance uk

catal's picture

This mini map can be used in different applications, without any risk. The map is easy to use and to integrate in any application or game. rca ieftin

catal's picture

This map application must be downloaded on the local server ? I want to use i for my lenjerie intima website but i am not very sure if it will work fine.

rrgan12's picture
4

I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
Ronald @ motor traders insurance

WandaJForbes's picture
5

I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
Wanda@ccleaner download

normanreed's picture
5

This is my first time I have visited here. I found a lot of interesting information in your blog. From the volume of comments on your articles, I guess I am not the only one! keep up the good work.
portable crib mattress
standard crib size

glenolsii's picture

There may be noticeably a bundle to know about this. I assume you made certain nice points in options also.
Free blackjack games online Foothold Online Casino focimeter