You know, you all are saying great things, but reality is another:
(I'm making an economical strategy game, so I spend several hours finding, how)
--------
Code:
VECTOR mapsize;//Don't forget to set it in Main
function md_unit(var dx,var dy,VECTOR* fcol)
{ draw_line(vector(dx+1,dy,0),NULL,100);draw_line(vector(dx+1,dy,0),fcol,100);
draw_line(vector(dx,dy+1,0),fcol,100);draw_line(vector(dx-1,dy,0),fcol,100);
draw_line(vector(dx,dy-1,0),fcol,100);draw_line(vector(dx+1,dy,0),fcol,100);}
PANEL* minimap =
{
bmap = "p_map.tga";//at last, you can use a black square
}
...
ACTION unit
{
...
while is(my.FLAG1) //or 'While I'm alive'
{
...
md_unit(minimap.pos_x+my.x/mapsize.x*minimap.size_x,minimap.pos_y+my.y/mapsize.y*minimap.size_y,vector(96,96,224));
wait(1);
}
...
function main()
{
...
vec_set(mapsize.x,vector(2048,2048,0))
...
}
Maybe there must be for function for drawing a bitmap, but there isn't. So be happy to make anything by colored lines.
-------
Send me a reply if you know how to make a function for drawing a bitmaps.