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.

Newcomers DBPro Corner / [DBPro] Create Map from Text File

Author
Message
meesta plunk
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 20th May 2006 15:26
I know in some languages, you can create a map from a text file, like this:



Where the "1's" represent a wall, and the "0's" are the floor. Then you run through with a 'for()' loop and replace all the numbers with the corresponding, image, picture, whatever. How can you do this is Dark Basic Professional?

Thanks
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th May 2006 19:35
Change the format of the file slightly to include the width and height.








meesta plunk
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 21st May 2006 05:02
Hey, thanks for the reply Phaelax. Part of my question however, was how do you do the "build wall" and "build floor" part. Can you help with that?
tippy1000
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 22nd May 2006 13:20
Hey, I am trying to figure that one out too. I know you can use the data statemant using images for the numbers but I am having problems so far as using the restore or read command, etc.
I hope this helps

Ed

Login to post a reply

Server time is: 2024-09-24 23:32:12
Your offset time is: 2024-09-24 23:32:12