Log inGet started
World

Press Start Studio: Title, Pause, Settings and Credits Menus

README.md

icons

The icons menusKit draws on cards, radial orbs, the settings arrows, the back button, the victory stars and the touch pause button. Each one is a small inline SVG on a 256-unit grid, stroked in currentColor, so it takes the colour of whatever style it sits in and needs no icon font. It draws the same in the editor, a native player and the web player.

The looks call it for you. A game reaches it only to give a menu item an icon: { id = "shop", text = "Shop", icon = "shop" } takes a built-in name, an alias such as "storefront", or a whole <svg ...> document of its own.

  • Icons.node(ref, size, color?, opts?): an svg widget node, size points square. opts takes weight, shadow = { dx, dy, color }, id and style.
  • Icons.svg(ref, opts?): the SVG document string.
  • Icons.has(ref), Icons.names(), Icons.aliases().