JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1170
  • Score
    100M100P100Q131807F
  • License MIT

A 3D environment for rolling game dice using threejs and cannon-es

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@3d-dice/dice-box-threejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    dice-box-threejs

    3D Dice implemented with ThreeJS and Cannon ES

    Based on Major's 3D Dice

    The goal of this project is to decouple the UI of Major's 3D Dice and strip down the dice box to just the essentials. Just a module that accepts simple dice notation input and outputs a JSON object when the dice finish rolling.

    Why another dice roller when you have @3d-dice/dice-box? Teall dice had already solved predeterministic rolling, which is a feature some developers really need. Major's 3D dice are based on Teall Dice.

    Demo

    https://codesandbox.io/s/dice-box-threejs-j79h35?file=/src/index.js

    Soon to be released to npm