|
-
May 7th, 2000, 12:00 AM
#1
Thread Starter
New Member
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
-
May 7th, 2000, 12:59 AM
#2
transcendental analytic
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.
-
May 7th, 2000, 03:35 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|