Butter Up
README.md
pauseMenu
Butter Up's pause screen and settings, built on the installed menusKit. ButterPan starts it when play starts and Escape does nothing while the title screen is up. Once Play is pressed, Escape, P, a pad's Start or the touch pause button opens menusKit's pause screen in its cozy look, in place of the engine's bare app menu. It offers Resume, Kitchen Shop (closes the pause and opens the upgrade shop), Settings and App menu.
While any menu is open PauseMenu.frozen() is true, and the pan and its effects stop: no tilt, no melt, no coverage and no sizzle. The kit's camera rows in Settings > Controls are taken over for the pan. "Tilt sensitivity" runs 0.4x to 2x (1x in the middle). Below 1x the pan tips less far; above 1x a smaller push of the mouse or stick reaches full tilt, and the pan answers faster to every input, the keys included, and "Invert tilt" makes forward tip the pan toward the cook. Both are saved with the player.
PauseMenu.start(onPause?): set the menus up for this session;onPauseruns whenever the pause screen opens.PauseMenu.enable(): allow pausing (after the title).PauseMenu.frozen(): whether a menu is up in front of the game.PauseMenu.shape(x, y): apply the player's tilt settings to a tilt input.PauseMenu.stop(): release the handlers.