Releasing Your Game
A Monogatari game is a small website: an index.html file and folders of plain files (your script, styles, images and audio, and the engine). Nothing in it has to be compiled. To release the game, you put a copy of that folder where players can open it.
If words like “text editor” or “browser” are new to you, start with Start Here and come back once your game runs.
Where your game can go
- Web Players open an address in their browser, on a computer, phone or tablet. You need a web host and a way to edit text files. Nothing to install.
- Mobile Phones and tablets play the web release, and their browser can install it on the home screen. Store apps are an optional extra that needs a computer.
- Desktop An app players download for Windows, macOS or Linux, made with Electron or Electrobun. You need a computer with Bun installed and a terminal.
Most games start with the web release. It reaches players on every kind of device, you can make it with no tools at all, and it’s also what phones and tablets install.
If you only have a phone or tablet
You can release on the web. Everything it takes is editing a few lines in your game’s files, making a ZIP file of the folder, and uploading that ZIP with a browser. Your device needs a text editor that can open your game folder and a file manager that can make ZIP files. Web walks through it.
Desktop apps and store apps for phones need a computer: the tools that make them don’t run on a phone or tablet.
Before your first release
- Choose your game’s name. Set
'Name'injs/options.js. The browser keeps the player’s saves and settings under this name, so pick it before anyone plays your game and don’t change it afterwards: under a new name, the game finds no saves. See Saving and Loading. - Play it from start to end with the debug module still loaded, and fix every error it shows. See Diagnosing Errors.
- Take the debug module out of what players get. It shows error dialogs meant for you. Each release page says how.
NOTE
Older versions of these docs had a page about releasing as a Chrome App. Chrome is removing Chrome Apps on every platform, and Monogatari 2.9.0 has nothing for them. A web release plays in Chrome and every other modern browser.