XML.. whats better..
Monkey Targets Forums/Android/XML.. whats better..
| ||
Whats better for levels with XML, a single file per level, or all your level data in a massive single file. ? |
| ||
a single file (imho)level1.xml currentLevelXML:String = "level" + String(currentLevelID) + ".xml" |
| ||
I'd go with a single file per level as well. Would save having to parse through the file and use minimal memory when loading/changing levels - every little helps especially on mobiles. |
| ||
Single file it is, thanks guys. that changes the need to seek the file I guess so yeah. /me walks off to change his code. :) |
| ||
Totally agree with the guys, single file levels are the way to go. 1. Smaller file = faster loading / parsing 2. Easier to alter levels 3. Easier to load |