Godot is an open-source game engine. Although usually used to make 2D games, it has been utilised to create text adventures. See here for an example.