Log inGet started
World

Soundstage: Adaptive Music, Footsteps and Ambience Kit

Branchmain
Branchesmain
Commit0b12f0dbaa

README.md

menus

The one module a game uses. require("menusKit.menus") gives the whole screen stack: showTitle, showPause, showSettings, showGameOver, showVictory, showLoading / setProgress, showCredits, back, hide, plus on(event, fn) to hear what the player picked. It also owns the look and layout (setTheme, setLayout, setup), the catalogue (looks, layouts, describe, match, catalogue), per-player settings (settings, setSetting, lookScale), language (setLanguage, addLanguage, text) and navigation helpers for tests (navigate, focus, select).

Game scripts and components call it. In play it spawns its own local MenusHost to draw and drive the screens, and while a menu is open it stands the local player's gameplay input down. The package README lists the full API.