There is a (First person, 3D) game, Antichamber, that has some elements of this. The room/corridor around you can change by looking, such as:
Walk up to dead end.
Turn around.
Corridor is no longer there, a dead end instead.
Turn around again.
There is now a brand new corridor in fron of you.
(These changes never visibly happen, but happen when they are out of view)
Walk up to dead end. Turn around. Corridor is no longer there, a dead end instead. Turn around again. There is now a brand new corridor in fron of you. (These changes never visibly happen, but happen when they are out of view)
Another (more maze like) example can be seen here: https://www.youtube.com/watch?v=v4JxhiNz8ec
(first video I found, there a probably better examples)