By default, a Monogatari game shows its main menu (Start, Load, Settings, Help) once it has loaded. A short demo, a preview embedded in a web page or a kinetic novel may be better off starting the story right away.

Start the story right away

Set ShowMainScreen to false in js/options.js:

monogatari.settings({
  'ShowMainScreen': false,
});

Reload the page: the game opens on the first line of your Start label instead of the menu.

To start at another label, set Label too:

monogatari.settings({
  'ShowMainScreen': false,
  'Label': 'Demo',
});

Without a main menu:

  • the game starts at Label as soon as it has loaded;
  • the quick menu still has Save, Load and Settings;
  • when the story ends, with an end statement or the quick menu’s Quit button, the game starts over at Label, since there’s no menu to go back to.

Show a splash screen first

A splash screen is a label that plays once, right after the game loads and before the main menu: a logo, a content warning, a credit. Name a label _SplashScreen and the game plays it on its own. End it with end:

monogatari.script({
  '_SplashScreen': [
    'show scene #000000',
    'centered This story contains scenes some players may find distressing.',
    'end',
  ],
  'Start': [
    'show scene #f7f6f6 with fadeIn',
    'Your story begins here.',
    'end',
  ],
});

The quick menu is hidden while the splash screen plays. Its end takes the player to the main menu, or, with ShowMainScreen off, starts the game at Label.

WARNING

Don't end a splash screen with jump Start. The game would go on to your story with the quick menu still hidden, and without counting as started, so the player couldn’t open the menus from the quick menu and saving wouldn’t work. end is the way out of a splash screen.

The SplashScreenLabel setting names the label to look for. Change it if your script already uses _SplashScreen for something else:

monogatari.settings({
  'SplashScreenLabel': 'Intro',
});

A game without a label of that name has no splash screen. In a multi-language game, each language’s script needs its own splash label.