Hi everyone,
I am currently testing a level design where several rooms are generated randomly. Each time the player changes room, a new one is loaded and the player finds himself at the entry point of this one (a bit like Cult of the Lamb).
For the part of loading the presets rooms I was inspired by
dop2000's demo (congratulations to him, it's really well done, you can find some of his demos here).
My player can therefore move from one room to another but however, I have not found a way to save the rooms he has already gone through.
For example, if I want the player to go back, it will randomly load a new room and not the room he has already visited.
I think there is surely something to do by saving the data in an array or a json file for example but I don't see how it could be done.
Besides, it could also have a mini-map which is built simultaneously according to the progress of the player.
If anyone here has a method or a solution, I'm all ears!
You can already test my progress on this file, the purpose will be quite different but it is a basis for understanding how it works.