Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (16)]    [Archived Thread] [Return to Creations]

Author:Zaltron [Posts]
Date:5/31/08 4:24 am [Last edited: 5/31/08 5:32 am]
Topic:MiniMap Generator
Post ID:641563
Next ID:644486
http://www.byond.com/developer/Zaltron/MiniMapGenerator

This gets the icon colors for you, no need to define colors for each turf and obj.

The code is messy, I've edited this so many times I haven't bothered keeping it organized. Which isn't a good thing.

The goal of this minimap generator is to pre-generate minimaps which is done quickly if you don't have a billion icons or pictures in your projects folder. You'll then be asked to save them as .dmi files. You then use ViewMap to open them, you'll want to take out the generate map(s) verb first. This way maps will load instant and you won't have a huge list of colors stored in memory.

minimapSize = 1

If you make that number higher the minimap will be bigger(it'll look less detailed), the number represents the size of a pixel, right now it's a 1x1 pixel.

ViewMap(icon,x,y,xview begin,yview begin,width,height,pixel_x,pixel_y,zlevel,layer)

This is the function you use to open maps.

I'll work on a more user friendly version of my minimap generator another time. I'm posting this on the hub right now because it's been sitting on my computer for almost a year now, if I don't do it now I probably won't get to it for awhile.

Messages in this Thread: [Show All (16)]

  MiniMap Generator Zaltron (5/31/08 4:24 am)
      MiniMap Generator 2 coming sometime in the near future? Zaltron (6/12/08 12:23 pm)
          Re: MiniMap Generator 2 coming sometime in the near future? Nickr5 (6/17/08 8:45 am)
          Re: MiniMap Generator 2 coming sometime in the near future? Rapmaster (6/17/08 8:26 am)
              Put on hold Zaltron (6/19/08 12:46 am)
                  Re: Put on hold Lyndonarmitage1 (6/19/08 3:47 am)
      Re: MiniMap Generator Jeff8500 (6/9/08 10:38 am)
          Re: MiniMap Generator Kaiochao (6/9/08 10:41 am)
              Re: MiniMap Generator Jeff8500 (6/9/08 11:05 am)
                  Re: MiniMap Generator Kaiochao (6/9/08 11:48 am)
                      Re: MiniMap Generator Jeff8500 (6/11/08 8:04 pm)
      Re: MiniMap Generator Airjoe (5/31/08 11:23 am)
      Re: MiniMap Generator Lyndonarmitage1 (5/31/08 11:03 am)
          Re: MiniMap Generator Lureman (6/8/08 8:57 pm)
              Re: MiniMap Generator Gogeta126 (6/12/08 9:33 am)
                  Re: MiniMap Generator Hazman (6/12/08 11:59 am)