@justinhardin/p5js-diceroller
v1.0.6
Published
Need a random number between 1 & 6, visually? A 3D dice roller built with p5.js
Downloads
11
Readme
Dice Roller
Diceroller is a simple p5.js sketch that rolls a 3d die and keeps track of the rolled value
To install
- npm install (installs dependencies)
- npm run build (builds the dist folder)
To run
- npm run start (starts up a local webpack dev server)
To use
- This component will render inside of an element with the id 'diceroller-container'
- One running, click anywhere in the sketch to roll. The dice will slow down and 'snap' to a face, and the fallow should appear in the lower right corner.
- With the sketch 'in focus' hit the space bar, this will pause the roll
That's it!