Computer Science Canada how do you make a mini map? |
Author: | Shyfire [ Sun Jun 26, 2005 11:51 pm ] |
Post subject: | how do you make a mini map? |
could some on show me some code on how to make a mini map |
Author: | jamonathin [ Mon Jun 27, 2005 9:04 am ] | ||
Post subject: | |||
You just make a smaller representation of your gameplay map onto a different screen. I dont have time to explain all the code, but here it is. The minimap's movement is scaled down by 20. I'm sure you can figure it all out
|
Author: | Delos [ Mon Jun 27, 2005 9:27 am ] |
Post subject: | |
Well, it all depends on how your original map works. jamonathin's method isn't too bad - though for a more detailed map you'd likely use a series of Pic.New()'s and Pic.Scale()'s. Another possibility (if your map has some grid-like basis to it) would be to assign a specific colour/shape to each type of object on your screen and display them on your map. For example, traversable terrain could be green, non-traversable could be brown, your player could be an arrow pointing in the direction of movement, etc etc. This would be pretty easy to pull off if you already had your entire map stored as grid-pieces in an array. |
Author: | Shyfire [ Mon Jun 27, 2005 10:36 am ] |
Post subject: | |
thx this helped alot |