Diceroller is a simple p5.js sketch that rolls a 3d die and keeps track of the rolled value
- npm install (installs dependencies)
- npm run build (builds the dist folder)
- npm run start (starts up a local webpack dev server)
- 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!