How to generate a random topdown RPG level (with tiles)
I am planning a top down RPG with random landscapes and random towns... (I know, I know) :D
My biggest fear is performance. Because I have 64*64 tiles and need to place about 1000 of them.
Question 1 - What Object should I chose for tiles.
Active object with different Directions for different tiles? Paste the Actives to the background as soon as they show the right tile? Or should I go with backdrops (if even possible) or something else. Performance is key!
Question 2 - Where would you store the information which tile has which graphic displayed?
Should I make an Array? Isn't this a problem with 1000+ tiles? How would you do it?
Question 3 - Making random gras is easy. But how would you do Paths?
Is there a way to calculate with arrays? At the moment, I think I use an active which shoots through the tiles and sometimes slightly changes directions and makes a path with every tile it colides.
Question 4 - How would you do it so the NPCs walk mostly on the path and not on the gras?
How would you do the movement. Ball with bouncing or is there a better way to make NPC walk from A to B through a path?
I just want to hear your ideas and experiences. You don't have to answer every question ;-)