Jump to content
  • Advertisement
Sign in to follow this  
Sivak

Making an editor with VB

This topic is 4457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. Basically, my pal and I are making up a game. I'm doing the graphical/audio side and he's doing the programming. So far, things are going great. I was actually hoping to do up an editor to simplify the level making process. Basically, what it would need to do is display the level tiles graphically. A level consists of 13X13 tiles. After the user is satisified, the level can be saved and exported to an XML file. The file would read like so:
<level>
<mapdata> 
CH, FL, WT, HT, HT, HT, WT, WT, WT, WT, WT, 
RK, FL, WT, FL, WT, FL, WT, WT, WT, WT, WT, 
RK, FL, WT, FL, WT, FL, WT, RK, FL, WT, WT, 
RK, FL, WT, FL, WT, FL, WT, TR, FL, FL, FL, 
RK, FL, WT, FL, WT, FL, WT, TR, FL, TR, TR, 
RK, FL, WT, FL, WT, FL, WT, TR, FL, TR, TR, 
RK, FL, WT, FL, WT, FL, FL, FL, FL, RK, RK, 
RK, FL, WT, FL, WT, FL, TR, FL, FL, RK, RK, 
RK, FL, WT, FL, WT, FL, TR, TR, EF, FL, FL, 
RK, FL, WT, FL, WT, FL, TR, TR, TR, TR, HT, 
RK, FL, FL, FL, WT, FL, FL, FL, FL, FL,ARL, 
</mapdata>
</level>
It's only 11X11 here as the exterior consists of walls, but it's nice to see the walls in the level. So far we have to type up the levels like this, which is tedious. I just want to know if this could be done easily. I'd also like to have tabs on the right side of the editor for floor terrain, monsters, and other map options. Where to go?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Sivak
I just want to know if this could be done easily.

Well, anything is easy if you know what to do ;) That being said, it's not too hard to build an XML processor. You can probably borrow some of the code that you already have built that will read the file ( you do have that, right? ). So you would put some graphical controls on a form that would allow the user to build their level, and your XML engine would generate the file. I've done something similar to build web menus. Like anything, the more functionality you provide, the more complex it becomes so make sure you have a good design before you start building.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!