CYA Engine v1.1.3
Create your own adventure
Current storyUntitled Story
Project
Your interactive fiction studio

Welcome to CYA Engine

Every choice opens a new path. Write a story in scenes, give your readers decisions to make, and turn those decisions into a playable adventure. No coding or account required to get started.

Your current story is shown in the header. Continue editing whenever you're ready, or explore the example to see how a branching story works.

The Menagerie Example · Explore a complete branching project with scenes, choices, flags and story maps. Loading it replaces your current project after confirmation.

How to use CYA Engine

Quick start: make a tiny adventure

  1. Export your existing Story JSON before replacing a project. Open Project and choose Clear Project for a blank story, or use Load Example Story above to explore The Menagerie Example.
  2. In Scene Editor, enter a game title and write the opening narrative.
  3. Click + Scene to create a second scene. Give it a distinct ID and write what happens next.
  4. Return to the first scene, click + Choice, enter the button text, and select the second scene under Go to scene.
  5. Set the Start scene in the Story panel. Open Preview Game and click the choice to test your path.
  6. Backup JSON to keep an editable backup, then Export Game to download the playable HTML.
1. Write scenes and connect choices

Use seasons and chapters to organize your scenes. Each scene ID must be unique. A standard scene needs a destination for each choice; an Ending scene displays the outcome and a restart button. The image path is optional. Narrative is plain text; separate paragraphs with blank lines. Duplicate copies a scene and its existing choices. Deleting a scene can leave incoming links broken, so check Story Map afterward.

On a phone, use Story, Edit and Scene Preview to switch editor panels.

2. Make choices depend on earlier decisions

Flags are named true/false markers. For example, in one choice enter has_key=true under Set flags. In a later choice enter has_key under Require flag to show it only when true, or !has_key to show it when not true. Separate multiple effects with commas. Existing advanced JSON conditions and conditional destinations are preserved unless you explicitly replace them using the simple controls. The visual editor does not expose every advanced game field (such as inventory, relationship scores, or conditional narrative).

3. Plan with Story Map

Story Overview organizes seasons, chapters and summaries. Chapter Map lets you add planned scenes, drag nodes, inspect links and create playable scenes. Dashed links are planning only; they do not create game choices. Ending Tracker stores planning notes for the six A–F outcomes. The existing route annotations are royal, journalist and guard; these are inherited from the original engine. Route Simulator shows flags, inventory, relationships, outcome scores and the path taken.

4. Play and test

Preview Game runs the actual generated game. Desktop and Phone change the frame width. Refresh / Restart loads a fresh copy of the story. Switching away and back preserves the current preview if the project is unchanged. Preview saves last only within that frame. Use Story Map → Story checks for missing destinations and structurally unreachable scenes. These checks cannot prove every possible condition or ending is reachable.

5. Save, back up and import

Your current project is saved in this browser as you edit. Keep only one editor tab open for the same website. Browser storage can be cleared, blocked or full; it is not cloud sync. Backup JSON regularly and keep copies outside your browser. Import JSON replaces the current project only after confirmation. Clear Project and Load Example Story also replace it. JSON contains the complete editable story and planning records. Game HTML is not an editable backup.

6. Publish the game

Export Game downloads a standalone HTML file with all story text and game logic. Exported game HTML also contains your story planning data, unpublished branches and notes; anyone can inspect its source. Review or remove private material before publishing. Image paths reference separate files, not embedded artwork: include those files at the same relative paths next to the exported HTML, or use image URLs you control. Missing images show placeholders. Rename the game to index.html when hosting it at a dedicated site root. Game and JSON exports share a build number; previewing does not advance it. The editor itself can be hosted as a static index.html, with no server or external libraries.

7. Troubleshooting