Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Mini Map Help

Author
Message
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 19th Aug 2004 05:14
Hey ^^

Nearly finished the map editor for my game. My game is like a multiplayer deathmatch type game; so someone would start a game and select a map. For the map selection screen, rather than just map names, i thought it would be nice if it could display a little image of like the map (think about selecting a map in most RTS games for a multiplayer game) - I would want the editor to generate this mini map bmp file when you save your map, i've had a few ideas but I cant get my head around how to scale it properly..
like lets say on the map selection screen theres a 100x100 px rectangle which when you click a map name the mini map appears in there. Well i was thinking I could generate a rough outline of the map by when saving, scan through the map array and parse its hardness data and draw like a black dot or something where-ever there is impassiable data - that would give a rough shaping to the map. But what if the map was say.. 200x150 tiles big instead of my standard 100? I would have to resize the image, but then chances are the whole map gets skewed and not really a very good representation at all -_-
In most RTS games i have played recently, when you click a map the preview always seems to be the same size regardless of map size and yet its a perfect representation of the map.. how do they do it? any tips or ideas? thanks ^_^

p4 2.4ghz, 768ddr ram, Geforce FX 5200
Innovate, redefine, recreate whats in your mind. It isnt fate, you decide, only you can cross that line.
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 19th Aug 2004 09:37
well i've got somewhere! i now have a routine that generates an accurate map pretty well and saves it ^_^ However, i was hoping i could have it in my map editor updating on the fly so you could see how much of the map you had covered.. but its SO slow when you have covered most of the map! I was wondering if anyone could help with ideas to speed it up? Heres the code I wrote:



had to write my own get pixel routine for images >>;;
Anyway bitmap 5 is created once at the start of the program. This all *works* its just SO SLOW. Please help?

p4 2.4ghz, 768ddr ram, Geforce FX 5200
Innovate, redefine, recreate whats in your mind. It isnt fate, you decide, only you can cross that line.

Login to post a reply

Server time is: 2025-05-16 04:43:25
Your offset time is: 2025-05-16 04:43:25