I need to create an endless straight corridor where different segments (rooms) spawn based on triggers. For example, after the player enters a specific zone (like seeing a particular room), certain other rooms appear, creating a kind of a "linear progression", but with the ability to go in both directions (there's no real "forward" or "backward" direction).
UPD. Extended explanation:
The game takes place at night. The player’s visibility is limited to the light around them.
- The player starts inside a house.
- They can look around and exit through the door.
- The player steps outside and finds themselves on a straight road surrounded by tall grass fields.
- They can go in either direction. The house scene disappears and cannot be returned to.
- The first bus stop appears along the road.
- The player can move further or turn back, but the house no longer exists, and the road with the bus stop loops infinitely in both directions (the bus stop should always be on the left side of the road, regardless of which direction the player chooses).
- Every bus stop after the first has a path leading into the fields nearby.
- Since the path is initially hidden by tall grass, the same bus stop scene can be reused (I think). The path simply becomes visible when it's needed.
- The player can enter the path.
- A sound event plays in that area.
- When the sound ends, new objects appear on the road.
- Approaching any of them fades the screen to black, ending the game.