Yeah, waay back in the day and they're very out of print now. It's a narrative that flows according to choices presented to the reader at finite points. Things like a description of a shootout with a mech which then turns and tries to escape. You're asked "Do you chase the Locust as it flees? Go to page XX if yes. Go to page YY if no." And the process repeats until you reach one of the multiple pre-programmed endings. Much more finite than what you're doing, but yeah the same kind of idea.