Guides
Each guide shows how to do one thing in your game: make a character speak, add a choice, play music, let the player save. They start from the starter game’s files and give you examples to paste in, with what you should see once you do.
If you’re new to Monogatari, do Start Here first: it explains the game folder, how to open the game and where each file is. The guides build on it.
NOTE
Everything in these guides needs a browser and a way to edit text files, nothing else. That can be a computer, a tablet or a phone, as long as your editor can open the game's folder, change its .js, .css and .html files, and show the game in a browser. When a task can also be done with more tools, that part is labelled optional and comes after the way without them.
Telling the story
The story itself: what the player reads, sees and hears, and the paths it can take.
- Script and Labels How the script is organized, how to jump between labels and end the game, and how to run your own code.
- Writing Dialog Narration, character lines, full-screen NVL pages, centered titles, text effects and variables in a line.
- Characters and Sprites Declare characters, show them on the left, center or right, change their expression, and add side images.
- Scenes and Images Backgrounds, colors and animations between scenes, and pictures over the scene.
- Music, Sound and Voice Background music, sound effects and voiced lines: play, loop, fade, pause and stop them.
- Choices and Branching Let the player choose, remember the choice, branch on it later, and add a time limit.
- Variables and Storage Remember things about the player, undo changes when they go back, and keep data across playthroughs.
The game around the story
Everything the player uses besides the story: the menus, their saves, the language, who can play it, and how they get the game in the first place.
- The Game’s Interface The main menu, the quick menu and the screens, and how to change them.
- Saving and Loading Save slots, autosaves, and what the player sees.
- Translating Your Game Offer the game in several languages.
- Accessibility What the engine does for players with disabilities, and what you can add in your own files.
- Releasing Your Game Put the finished game on the web, on the desktop, or on phones and tablets.
Which file to edit
The guides send you to the same few files of the game folder:
| File or folder | What goes in it |
|---|---|
js/script.js |
The story: labels and statements, characters, and the list of assets (scenes, images, music). |
js/storage.js |
Your variables, with the value each one starts with. |
js/options.js |
The game’s settings, like its name or whether lines type out. |
js/main.js |
Your own JavaScript that runs when the game starts, and the debug level. |
style/main.css |
Your own styles, to change how the game looks. |
index.html |
The page itself: which parts of the interface the game has, and which files it loads. |
assets/ |
The files: scenes, characters, images, music, sounds, voices, videos and more, one folder for each. |
The Project Folder walks through all of them.
Looking up every option
The guides show the common way to do each task and link to the full details. For every option of a statement, a component or a setting, go to the references:
- Script Actions: every statement you can write in the script.
- Components: every part of the interface, its markup and its styles.
- Configuration: every setting and player preference.
- Engine API: every method of the
monogatariobject, for your own code.
To write statements or parts of the interface of your own, see Extending Monogatari.