I've been busting my head trying to do something on my own, but I guess I'll have to post it here so you guys can have a look.
I've been trying to make a randomized "dungeon" level, made of tiles. But instead of having each tile randomly (or at least following some laws) on the screen, I must use some predesigned sets of tiles (let's call them "rooms") of 5x5 tiles, for example. Then, at level creation, these rooms will be placed randomly.
What's the best way to do this? I'm thinking about having a TXT file with the information of each room's layout, then choose each of these rooms and create each tile on the screen. But what's the best way to do it?
I'll begin this right away, so I can post some of my efforts here! **Edit**
I made a TXT with this structure (using a 5x3 tiles room):
But since the Text Manipulator reads the files line by line, I had to go with this:
I decided to use one array to store every room in the game: Using X for the room and Y and Z for the tiles position (X and Y).
So now I'm trying to make the Array with the Text Manipulator... Any advices?**New Edit**
Hmmm... I messed around with the array and now I'm thinking about using the APPs to create a level editor, saving the array positions...
Is there a way for me to write a TXT file then have it loaded into the Array with the "Load from file" command?