Load different levels in XML

Posted by Anearion on Game Development See other posts from Game Development or by Anearion
Published on 2013-07-29T17:55:08Z Indexed on 2013/11/13 4:16 UTC
Read the original article Hit count: 415

Filed under:
|

my question is more about a theoretical gener than a pratical way to make things happen.

I'm about start developing a game for android, text based so i won't need sprites or animation, nor a game engine.

Let's say is similar to a sudoku game, where each level is an harder version of sudoku and each level has some question to be asnwered over the sudoku itself.

I was wondering if the better way is to have only one XML and then inside all the different levels, each one with his meta-tags, or if the different approach of making n xml files where each one is a level is preferred.

At the moment a level should have those tags:

<level>
<question>Question_1</question>
<hint1>what does it do?</hint1>
<hint2>where...</hint2>
....
<hintN>how...</hintN>
</level>

So each level could have some items to read and that's what made me think that maybe different files are better cuz if i have to load lvl 10 i can read only the 10.xml file.

I hope my question isn't too stupind.

Thanks in advance

© Game Development or respective owner

Related posts about android

Related posts about Xml