Results 1 to 5 of 5

Thread: Tile game? Maping...

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    9

    Question

    I have a large tile map that you can only
    see a small portion of so, I need one of
    those little maps that you see in games.
    The one that shows a shrunken picture
    of the whole world.

    I have a backbuffer of the entire map without
    the players on it so if some how I could
    shrink that ????

    Hope someone can help....

    Thanks

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    what api's do you use to visualize the map?
    I wouldn't recommend to store the entire map in a backbuffer, especially for large maps.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Stretchblt API!!!

    It's similar to bitblt API but you can change the size in the blitting.
    Or you could assign a colour to all of the units and map tiles and then just do it like that.
    This is for a Minimap, right?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    9
    Thanks Sastraxi that works

    Kedman I am putting large maps into a backbuffer.
    What do you recommend? My intention is to make this
    an interactive network game. So, I have multiple
    players adjusting multiple things all over the map.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    How large is the bitmap and what color resolution?
    If you have a tile based map i suggest you create a 8 bit bitmap from the array you use as map, and assign the palette the colors you need for each specific tile. Then you could further plot overlaying structures/units on it. If the map is static during most of the time, you could generate the bitmap each time it's changed and add the overlaying pixels in another backbuffer.

    regarding the bigger map, you should only keep a backbuffer of what currently fits into the screen, and then update it as you scroll or tiles changes.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width