danprince / midas

🫅 Traditional roguelike where everything you touch turns to gold.
https://danprince.itch.io/midas
2 stars 0 forks source link

Multiple Level Architecture #26

Open danprince opened 4 years ago

danprince commented 4 years ago

How do we store/generate multiple levels so that the player can go up and down through the dungeon?

The current level needs to be loaded onto the stage, but is the stage appropriate for storing all levels? E.g. game.levels is an array of stages?

Need to track the following data:

How to implement branching so that going down one set of stairs can take you to somewhere other than levels[currentLevelIndex + 1]?

Need to base the level generation seeds off of a master seed so that the levels are consistent, regardless of where else the player has been before.