Results 1 to 3 of 3

Thread: Making a map

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Arkansas
    Posts
    15
    Anyone know how to make up a picturebox of a map with different graphics.

    I'm making a map with different terrains, and I was wondering if I could just use one picturebox and use like a code that can turn numbers into graphics for the picturebox

    Ex:

    1 = Tree
    2 = Water
    3 = Grass

    13333332213333333
    11333322233333333
    13332222233333133
    22222222223333331

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Just make an byte array to store it and make an xloop inside an yloop to draw the map reading the array and using graphical methods like bitblt or imagelistviews draw.
    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
    Guest
    Yes you can use numbers to represent things. I used about 50 differnt numbers one time so it gets kind of confusing when you have a lot. A good way to do it is to create a Const for the App i.e the Variable for the 348 Const could be TREES, which is much easier to remember than 348.

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