Text Based RPG in Design Philosophy
|
|
I'm just asking for some advice here. I'm making a text based RPG. How should I handle buildings in certain locations? Should I just make individual "turfs" and use move() to get to them? Or is there a more general way to handle it? The reason I ask is because right now I'm trying to use Room list variables to handle everything (including buildings). I suppose making the building a turf and controlling exits would be no prob...
What do you guys think? How should I handle this?
|
One thing you might want to do is write some code that constructs rooms from a list. So, say you have a list of rooms, each of which contains another list with descriptions, exits, etc. Then write code that generates all the rooms from that list on startup. As an example: