Turn a novel, screenplay, or story outline into a playable branching-narrative text-game JSON script, then play it immersively with Shanyin's open-source "Branching Story Game Launcher" (single-file HTML). Covers the whole pipeline: understanding the source, preserving its style, breaking down structure and designing branches, state and ending matrices, section-by-section writing, and 13 automated checks; plans node counts and playtime by the size of the work, allocates branches proportionally, and rules out dead ends and broken links. Ideal for Chinese-language creators who want to turn existing works into shareable interactive text-game demos.
Turn your novel or screenplay into a playable interactive text game
Hand over the original text of a novel, screenplay, or story outline, and get back a branching-narrative JSON script you can import straight into the launcher and play.
Adapting a novel into an interactive text game: what this tool can do
Story-to-Game is a skill that adapts novels, screenplays, or story outlines into playable branching-narrative text games, built for Chinese-language creators who want to turn an existing work into an interactive demo.
You already have a finished story and want it to become an interactive text game that readers can click through toward different endings — but splitting branches by hand and designing state and ending matrices is slow, and broken links come easily.
It first reads the whole work, builds a memory index, and extracts a style fingerprint. Then, without disrupting character relationships or the core plot, it breaks the story into chapters and nodes, designs attitude, path, and fate branches in proportion and fills in transition nodes, builds the main state values and a multi-type ending matrix, and finally writes it out as JSON section by section.
What you get is a JSON script that meets the launcher spec — import it into the single-file HTML launcher and play. 13 automated checks verify node reachability and ending fallbacks, so there are no dead ends. It suits screenwriters, authors, and independent creators who already have a complete work and want to make it a shareable interactive text game.
How it differs from other ways of adapting a novel into a text game
A general AI chat can dash off a stretch of branching plot for you, and its strength is flexibility; but improvised output lacks global structure, so halfway through you often find nodes that don't line up, perfunctory side branches, and endings with no fallback. Story-to-Game splits adaptation into nine steps with fixed outputs, from source ingestion and style fingerprinting to branch design and JSON output, and every step leaves behind a result you can check.
Compared with splitting branches by hand in writing software, it plans node counts and playtime according to the size of the work, allocates attitude, path, and fate branches proportionally, and automatically fills in transition nodes between events — so what you get is not an outline but a structurally complete script you can actually click through and play.
It also extracts the source's narrative temperature, dialogue rules, and rhythm patterns before it starts writing, keeping the original's character as far as possible instead of kneading different works into one generic style.
If you already have a finished work and want to turn it into a shareable interactive text game, this skill is the better fit; if you just want to play a quick stretch of branching text and don't care whether the structure holds up, having a general AI chat write one is less trouble.
Common questions about adapting novels into interactive text games
How long a story can it adapt into an interactive text game?
Short stories, novellas, full-length novels, as well as screenplays and story outlines, all work. Story-to-Game plans node counts and playtime according to the size of the source; the longer the work, the more chapters and branches it plans.
What format should the source text be in?
Just provide the novel, screenplay, or story outline as plain text. Hand it the source text and it does source ingestion and memory indexing first, then moves into the adaptation flow — you don't need to organize the structure or format in advance.
What does the result look like?
A JSON script file that meets the launcher spec. Import it into the accompanying single-file HTML branching-story game launcher and open it in a browser to play; it supports advancing by click or Enter, choosing branches, saving and loading, plus ending and achievement records.
Will it rewrite my source text and change the characters and plot?
It adapts on the basis of understanding the source, with the focus on preserving the source's character, character relationships, and core plot. To support the branches it writes transition scenes the source never developed and new branch content, but the style fingerprint is extracted from the original text first and used to prevent style drift.
How do you make sure play never gets stuck or fails to reach an ending?
After generation it automatically runs 13 checks, covering node reachability, reference integrity, branch depth, and ending completeness. Ending design also carries fallback rules that ensure any choice path reaches some ending, avoiding dead ends and broken links.
How is it different from having a general AI chat write a stretch of branching plot directly?
A general AI chat can improvise branching plot, and its strength is flexibility; Story-to-Game splits adaptation into nine steps with fixed outputs and pairs them with automated checks and JSON output. What it delivers in the end is a complete script you can import into the launcher and play right away, not a stretch of text you still have to tidy up yourself.
Are play progress and achievements saved?
Yes. The launcher keeps saves, endings, and achievement records locally in your browser, and you can save manually at key nodes. Note that clearing your browser cache will lose these records, so keep important saves separately.
Which browsers or environments does it support?
The launcher is single-file HTML; Chrome or Edge is recommended, since these two support the File System Access API and can use a local folder directly as a library. In other browsers, import the script by inserting the JSON — core play features are unaffected.