Files support
Posted: Mon Aug 11, 2008 9:54 am
Need help ...
Is there any possibility to make ZGE program read levels from files but this way:
For example we have level1.txt file with this inside:
So we make ZGE program that first reads the file, but only the first 2 numbers that represent the level dimensions. Then it reads the level, and after we finish the level he reads if the last number is 0 or 1 and that represents if there is level2.txt, and starts reading level2.txt automatically next level...
Because only thing I can manage to make with files, is the sepparate LevelLayoutFile component for each level, thats a little bit unpractical, coz I check for characters there, and spawn models depending on them.
The biggest problem there is updating ...
Whenever I add new character that represents some new object, I have to add it in all the LevelLayoutFile components ...
Any suggestions ?
Some .zgeproj files with it could be nice ...
Cheers
Boris
Is there any possibility to make ZGE program read levels from files but this way:
For example we have level1.txt file with this inside:
Code: Select all
5 5
XXXXX
XP X
X EX
X X
XXXXX
1
Because only thing I can manage to make with files, is the sepparate LevelLayoutFile component for each level, thats a little bit unpractical, coz I check for characters there, and spawn models depending on them.
The biggest problem there is updating ...
Whenever I add new character that represents some new object, I have to add it in all the LevelLayoutFile components ...
Any suggestions ?
Some .zgeproj files with it could be nice ...

Cheers
Boris