Skip to content

Latest commit

 

History

History
 
 

docs

README.md

title Welcome
order 0
description Monogatari is a free engine for visual novels that play in a web browser. Find where to start, whether this is your first game or you work on the engine.

Welcome

Monogatari is a free, open-source engine for visual novels: stories told with pictures, text, music and the player's choices. A Monogatari game is a web page, so it plays in a web browser, and you make one by editing a few text files.

The Palacio de Bellas Artes in the afternoon light, at the end of a stone path. Yui, a girl with long purple hair, stands in the middle, looking worried. Two buttons read "Read the first page" and "Find its owner", and the text box at the bottom shows Yui asking "What should we do with it?"|A choice in After the Bell, the short story you write in Start Here.

The pictures here and in the tutorial, the Palacio de Bellas Artes and the characters Yui and Mio, are by Queen BeeBee. Every expression and layer of Yui and Mio is in monogatari-characters-v2.9.0.zip. Her pictures are for your own free games, under their terms: always credit Queen BeeBee, and never use them with AI or in anything that makes money.

These docs describe Monogatari v2, version 2.9.0. If your game was made with an older version (2.8, or 1.4.1), read Upgrading first.

Where do you start

:::cards

  • This is my first game You have a folder with an index.html in it, or you're about to download one. Start Here takes you from that folder to a short finished story you can share. A browser and a way to edit text files are all you need, on a computer, a tablet or a phone.
  • I want to do one thing You know the basics and want a choice that leads somewhere new, a translation, a save screen that looks like yours or a desktop build. The Guides explain one task at a time, and the references list every statement, component and setting.
  • I want to extend the engine You write JavaScript and want your own statements or interface pieces. Extending Monogatari and the Engine API are for you.
  • I work on Monogatari itself You cloned the repository to fix the engine or release a new version of Monogatari 2. Working on Monogatari explains how it's laid out, built and tested.

:::

What each section is for

Section What you find there
Start Here A tutorial for complete beginners: get the starter game, open it, write a story with characters, choices and music, and put it online.
Guides How-tos for telling the story (dialog, labels, characters, scenes, music, choices, variables) and for the game around it (the interface, saving, translating, accessibility, releasing).
Script Actions Every statement your script can use, such as show scene or jump, with its syntax and examples.
Components The pieces of the interface (the text box, the menus, the save screen) and how to restyle, replace or extend them.
Configuration Every setting in js/options.js, the player's preferences, saving, preloading and languages.
Style and Design Your styles in style/main.css: the CSS variables, the classes and attributes the engine sets, Kayros, fonts, icons, image menus, animations and small screens.
Extending Monogatari Your own actions and components, changes to the built-in ones, interface translations, and the libraries the engine is built on.
Engine API Every method, property and event of the monogatari object, and using the engine with a bundler.
Help The error dialogs explained, fixes for common problems, and where to ask.
Upgrading What to change in a game made with 2.8, or with version 1.4.1.
Working on Monogatari For people who work on the engine: a learning path, the architecture, each part of the engine, the tests and the release process.

A map of the docs

Each planet is a section. Click one to see what it holds, and drag to turn the map.

---
title: Monogatari v2 docs
---
# Monogatari v2 docs
Every section of the documentation, from your first game to the engine's insides.

## Start Here
Your first game, with only a browser and a text editor.
- What you need
- Get the starter game
- Open your game
- The project folder
- Edit, save, reload
- Your first scene
- Characters and expressions
- Choices and endings
- Music and sound
- The player's name
- Saving and loading
- When something goes wrong
- Share your game

## Guides
One task at a time.
- Telling the story
  - Writing dialog
  - Script and labels
  - Characters
  - Scenes and images
  - Music, sound and voice
  - Choices and branching
  - Variables and storage
- The game around it
  - The interface
  - Saving and loading
  - Translating
  - Accessibility
- Releasing
  - Web
  - Desktop
  - Mobile

## Script Actions
Every statement, with its syntax.
- Dialog and text
- Scenes, images and characters
- Choices, input and the flow
- Music, sound, voice and video
- Messages and effects

## Components
The pieces of the interface.
- Screens and menus
- The text box and quick menu
- Save and load screens
- Pieces your script creates

## Configuration
The settings in js/options.js.
- Game settings
- Player preferences
- Saving and storage
- Preloading
- Languages

## Style and Design
How the game looks.
- Your stylesheet
- CSS variables
- Classes and attributes
- Kayros CSS
- Fonts and icons
- Image menus
- Animations
- Small screens

## Extending Monogatari
For JavaScript developers.
- Your own actions
- Your own components
- Interface translations
- Core libraries
- Bundlers

## Engine API
The monogatari object.
- Setting up
- Script and flow
- State and storage
- Saving and loading
- Events

## Help
When something goes wrong.
- Diagnosing errors
- Troubleshooting
- FAQ

## Upgrading
- From 2.8
- From v1.4.1

## Working on Monogatari
For engine maintainers.
- Learning path
- Architecture
- How each part works
- Testing
- Releasing

Ask for help

When the docs don't answer your question, ask on the Discord server, and report bugs in the engine on GitHub. Ask for help lists what to include so someone can answer on the first try.

Support the project

If Monogatari is useful to you and you'd like to support it, there are several ways to sponsor it. Some sponsor tiers come with benefits, such as hosting for your games.