Rolling Bones: Physics Dice, Cups, Towers and Trays Kit
README.md
diceKit.api
The one interface: local DK = require("diceKit.api"). DK.Tray{ ... } spawns a synced multiplayer dice tray in a scene's build (style, dice, look, roll, display, size, color, seed and more, every variety one setting away); DK.tray(name) is the live controller (roll{ by, dice, seed, aim, strength }, set, get, busy, last, history); DK.on("rolled", fn) hears every result on every peer; DK.rules(name, { canRoll, onRolled }) lets the game decide whose turn it is; DK.Gallery{} adds the browser. DK.CATALOG, DK.variants, DK.normalize, DK.parseDice and the pure modules (DK.Shapes, DK.Recording, DK.Looks, DK.Trays, DK.Rolls) work with no tray in the world.