What You Need
Two things: a web browser and a way to edit text files. This page explains both, and what a Monogatari game is, so the rest of the tutorial makes sense.
A web browser
You already have one. A Monogatari game is a web page, so it plays in the browsers people use every day, on computers, tablets and phones. This tutorial was tested in Chromium (the open-source browser that Chrome is built on) and in Firefox, on a computer. Its screenshots come from Chromium.
A way to edit text files
A Monogatari game is a handful of text files. You’ll change them with a text editor: a program that saves exactly the characters you type and nothing else.
Word processors such as Microsoft Word, Pages or Google Docs won’t do. They save fonts, colors and layout into the file along with your words, and the browser can’t read the result.
On a computer
The plain text editor that came with your computer works: Notepad on Windows, for example.
A code editor is a text editor made for files like these, and it makes the work easier. It colors the code so a missing quote or bracket stands out, and it shows the whole game folder in a sidebar so you can move between files. Visual Studio Code is a free one for Windows, macOS and Linux. It’s a recommendation, not a requirement: everything in this tutorial works in any plain text editor.
WARNING
Some editors replace straight quotes (' and ") with curly ones (‘ ’ and “ ”) while you type. JavaScript, the language your game’s script is written in, only understands straight quotes, and a curly one stops the game from starting. If your editor has an option called “smart quotes” or “smart punctuation”, turn it off. Code editors don’t do this.
On a tablet or a phone
You can make a whole game on a tablet or a phone. This tutorial doesn’t name an app, because we haven’t tested one; look for an editor that can do these three things:
- Open a folder, not only single files. Your game is a folder with other folders inside, and you’ll add images and music to it.
- Edit
.js,.cssand.htmlfiles as plain text. Turn off autocorrect, automatic capitals and smart punctuation for it, in the app or in your keyboard’s settings: they change what you type, and the game stops working. - Show
index.htmlwith the files next to it. Some editors call this a preview. The game only works when the page can load the other files in its folder. A preview whose address starts withhttp://also plays the music; Open your game explains why.
You’ll also need to unzip a file once, on the next page. Your phone’s file manager may do it; if it doesn’t, an app that extracts ZIP files will.
NOTE
Phone browsers don't have the console that computer browsers have (it's explained in When something goes wrong). On a phone, the error dialogs Monogatari shows are how you find mistakes, and the mistakes that don’t show a dialog are listed on that page.
What a Monogatari game is
A Monogatari game is a web page: the same kind of file as any page you visit on the internet, plus the files it uses. The page is index.html. When the browser opens it, index.html loads the engine (the program that runs visual novels, in the engine/ folder) and then your own files in the js/ folder, which describe your game. The engine reads your story from them and shows it on the screen.
The browser does all the work. There’s no step that turns your files into a game: what you edit is what the player plays.
What you don’t need
- Programming experience. You’ll write your story in a simple format, one line at a time, and the tutorial explains every piece.
- A terminal, Node, npm or Bun. Some pages have a part marked optional for people whose computer has these tools. You can skip all of them.
- An account anywhere, until you decide to put your game online.
Next
Get the starter game, the folder every Monogatari game starts from.