Step 5 of 6
Five rooms. Two characters. Time to make it playable.
Watch what the agent does:
snapshot to load all seven pages in one requestindex.html with a working gameOpen index.html in your browser. You should be able to:
The exact layout and interactions depend on your agent's choices. That's fine — the important thing is that every room, character, and connection came from your txtscape pages.
The AI didn't invent your labyrinth. It read your pages and built the game from them. The room descriptions, the character dialogue, the map of connections — all sourced from txtscape.
Your pages are the source of truth. The code is derived from them.
Without txtscape, you'd describe the entire game in chat, the agent would generate code, and next session it would forget everything. With txtscape, the knowledge persists. Every session, every agent, starts from the same source.
snapshot loads all pages in one call — ideal when the
agent needs the full picture. get_page reads one page at a
time — better for targeted lookups. The agent picks the right tool
based on what you ask.
git add .txtscape index.html
git commit -m "generate text adventure from labyrinth pages"