Adventure Kit

Write a choose-your-own-adventure story in a YAML file, and Adventure Kit turns it into a game that runs in any web page.

Play the Space Adventure

Add it to a page

Load the script and style sheet, then point an element at your story file:

<link rel="stylesheet" href="adventure-kit.css">
<script src="adventure-kit.iife.js" defer></script>

<div data-adventure-kit="adventure.yml"
     style="height: 100vh"></div>

Write the story

Each screen has text and the choices that lead from it. Screens can change health and inventory, lock choices until the player holds an item, and give the player a few seconds to act.

screens:
  start:
    content: You wake on a drifting ship.
    go:
      - open_hatch
  open_hatch:
    name: Open the hatch
    health: -1
    content: Cold air rushes in.

© Letters & Colors, LLC.