- Home /
Best way to organize your levels (XML? )
Ok so I'm coming from a flash game development enviroment and there what I used to do to load a level is basically make the level on a tileEditor that would generate an XML and then consume the XML to generate the logic for that current level.
For example in level 1 enemies would show up on different places then on level 2 and all that would be written on the XML. You guys know what I mean?
So I've been trying to learn some unity for a project I'm in and I've come to the time to make my levels so I was trying to it the same way but... is it the best way?
Answer by DaveA · Jul 20, 2012 at 01:14 AM
I would say only
a) if you need to change the spawn positions of those enemies after building the game, say, if you are getting that XML from a server and it would be changing. If not, best to build that into the level (scene).
b) if you are porting from another platform (Flash) (and if you want to port back to it), you might want to maintain those files, and you could make Editor script(s) to manage that.
Your answer
Follow this Question
Related Questions
Creating a Level using XML 1 Answer
A node in a childnode? 1 Answer
Can't use System.IO.FileInfo.Delete 1 Answer
Creating 3D levels with text and XML files 2 Answers
Create level based on XML/TXT file 3 Answers