This tutorial is for you if you’ve never made a game or a web page. It starts with the file you download and ends with a short visual novel that anyone can play from a web address.

You don’t need to know how to program, and you don’t need to install anything you don’t already have. A web browser and a way to edit text files are enough, on a computer, a tablet or a phone. Every new word is explained the first time it appears, and every step tells you what you should see when it worked.

What you’ll make

The tutorial builds one small story, After the Bell. A drawing class ends in front of the Palacio de Bellas Artes, and you find a sketchbook someone left behind. Yui, who was in the class too, asks your name, then what to do with the sketchbook, and the player’s choice leads to one of two endings.

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?"
The choice in the middle of After the Bell. You'll write all of it.

Along the way you’ll use what most visual novels are made of: narration and dialog, backgrounds, characters with different expressions, choices with more than one ending, music and sound effects, the player’s own name, and saving.

The steps

  1. What you need: a browser, a text editor, and what a Monogatari game is.
  2. Get the starter game: download it and unzip it.
  3. Open your game: see it run in your browser, and what changes when the game is served.
  4. The project folder: what each file is for, and which ones you’ll change.
  5. Edit, save, reload: the loop you’ll use for everything else.
  6. Your first scene: narration and a background.
  7. Characters and expressions: a character who talks and shows feelings.
  8. Choices and endings: let the player decide how the story ends.
  9. Music and sound: a song for the scene and a sound effect.
  10. The player’s name: ask for it and use it in the dialog.
  11. Saving and loading: what players can do without any work from you.
  12. When something goes wrong: read the error messages and fix the usual mistakes.
  13. Share your game: put it online.

Each step takes a few minutes. You can stop after any of them and come back later: your game is saved in its folder, like any other file.

IMPORTANT

These pages are for Monogatari v2, version 2.9.0. Opened straight from its folder, a v2 game plays the whole story, music included, but a few features only work when the game is served. Open your game explains the difference, and how to serve a game without installing anything.

TIP

Already comfortable with web pages? Download the starter game, serve its folder, and edit js/script.js. The Guides and Script Actions cover the rest.